File size: 1,428 Bytes
31248b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { DocNode } from '../nodes';
/**
 * Renders a DocNode tree as plain text, without any rich text formatting or markup.
 */
export declare class PlainTextEmitter {
    /**
     * Returns true if the specified node contains any text content.
     *
     * @remarks
     * A documentation tool can use this test to report warnings when a developer neglected to write a code comment
     * for a declaration.
     *
     * @param node - this node and all its children will be considered
     * @param requiredCharacters - The test returns true if at least this many non-spacing characters are found.
     * The default value is 1.
     */
    static hasAnyTextContent(node: DocNode, requiredCharacters?: number): boolean;
    /**
     * Returns true if the specified collection of nodes contains any text content.
     *
     * @remarks
     * A documentation tool can use this test to report warnings when a developer neglected to write a code comment
     * for a declaration.
     *
     * @param nodes - the collection of nodes to be tested
     * @param requiredCharacters - The test returns true if at least this many non-spacing characters are found.
     * The default value is 1.
     */
    static hasAnyTextContent(nodes: ReadonlyArray<DocNode>, requiredCharacters?: number): boolean;
    private static _scanTextContent;
    private static _countNonSpaceCharacters;
}
//# sourceMappingURL=PlainTextEmitter.d.ts.map