UNPKG

maketypes

Version:

Make TypeScript types and proxy objects from example JSON objects. Can use proxy objects to dynamically type check JSON at runtime.

12 lines (11 loc) 312 B
declare abstract class Writer { private readonly _tab; private readonly _nl; constructor(tab?: string, newline?: string); abstract write(s: string): this; abstract close(cb: () => void): void; tab(n: number): this; endl(): this; writeln(s: string): this; } export default Writer;