Archived
1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
api-ts-gen/dist/CodePrinter.d.ts

24 lines
619 B
TypeScript
Raw Normal View History

interface WriteStream {
write(s: string): void;
on(s: string, callback: () => void): void;
end(): void;
}
export declare class StringStream implements WriteStream {
private content;
write(s: string): void;
on(): void;
end(): void;
toString(): string;
}
export declare class CodePrinter {
private writeStream;
private indentString;
private cIndent;
constructor(writeStream?: WriteStream, indentString?: string);
writeln(s?: string, dIndent?: number, pretab?: boolean): void;
write(s: string): void;
tab(x: number): void;
end(): Promise<void>;
}
export {};