UNPKG

maketypes

Version:

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

14 lines (12 loc) 228 B
import Writer from './writer'; /** * Does nothing. */ export default class NopWriter extends Writer { public write(s: string): this { return this; } public close(cb: () => void): void { setTimeout(cb, 4); } }