1 | export interface WriteProcessorOptions {
|
2 | indentChar: string;
|
3 | indentSize: number;
|
4 | normalizeTypeName: (type: string, primitive: boolean) => string;
|
5 | }
|
6 | export default class WriteProcessor {
|
7 | private options;
|
8 | private indent;
|
9 | private results;
|
10 | private alreadyIndentThisLine;
|
11 | constructor(options?: Partial<WriteProcessorOptions>);
|
12 | clear(): void;
|
13 | output(str: string): this;
|
14 | outputType(type: string, primitive?: boolean): this;
|
15 | outputKey(name: string, optional?: boolean): this;
|
16 | outputLine(str?: string): this;
|
17 | private protectComment;
|
18 | outputJSDoc(...comments: any[]): this;
|
19 | doIndent(): this;
|
20 | get indentLevel(): number;
|
21 | increaseIndent(): this;
|
22 | decreaseIndent(): this;
|
23 | getIndent(): string;
|
24 | private repeatString;
|
25 | toDefinition(): string;
|
26 | }
|