├── .gitignore ├── .npmignore ├── .travis.yml ├── README.md ├── index.ts ├── lib ├── cb_writer.ts ├── emit.ts ├── index.ts ├── nop_writer.ts ├── stream_writer.ts ├── types.ts └── writer.ts ├── package.json ├── test ├── collections.ts ├── common │ ├── generateSamples.ts │ └── util.ts ├── generated │ └── .githold ├── large_samples.ts ├── primitives.ts ├── records.ts ├── samples │ ├── Boolean.json │ ├── BooleanOrString.json │ ├── Booleans.json │ ├── EmptyArray.json │ ├── FieldNames.json │ ├── GitHub.json │ ├── MaybeNumber.json │ ├── MixedArray.json │ ├── MixedArray2.json │ ├── Null.json │ ├── Nulls.json │ ├── Number.json │ ├── Numbers.json │ ├── OptionalField.json │ ├── PrimitiveArray.json │ ├── String.json │ ├── Strings.json │ ├── TwitterStream.json │ └── WorldBank.json └── tsconfig.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | *.js 2 | *.d.ts 3 | node_modules 4 | /test/generated 5 | /coverage 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | coverage 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/README.md -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/index.ts -------------------------------------------------------------------------------- /lib/cb_writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/cb_writer.ts -------------------------------------------------------------------------------- /lib/emit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/emit.ts -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/nop_writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/nop_writer.ts -------------------------------------------------------------------------------- /lib/stream_writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/stream_writer.ts -------------------------------------------------------------------------------- /lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/types.ts -------------------------------------------------------------------------------- /lib/writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/lib/writer.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/package.json -------------------------------------------------------------------------------- /test/collections.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/collections.ts -------------------------------------------------------------------------------- /test/common/generateSamples.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/common/generateSamples.ts -------------------------------------------------------------------------------- /test/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/common/util.ts -------------------------------------------------------------------------------- /test/generated/.githold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/large_samples.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/large_samples.ts -------------------------------------------------------------------------------- /test/primitives.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/primitives.ts -------------------------------------------------------------------------------- /test/records.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/records.ts -------------------------------------------------------------------------------- /test/samples/Boolean.json: -------------------------------------------------------------------------------- 1 | true -------------------------------------------------------------------------------- /test/samples/BooleanOrString.json: -------------------------------------------------------------------------------- 1 | [ 2 | true, 3 | "hello" 4 | ] -------------------------------------------------------------------------------- /test/samples/Booleans.json: -------------------------------------------------------------------------------- 1 | [ 2 | true, 3 | false 4 | ] -------------------------------------------------------------------------------- /test/samples/EmptyArray.json: -------------------------------------------------------------------------------- 1 | [ 2 | [] 3 | ] -------------------------------------------------------------------------------- /test/samples/FieldNames.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/FieldNames.json -------------------------------------------------------------------------------- /test/samples/GitHub.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/GitHub.json -------------------------------------------------------------------------------- /test/samples/MaybeNumber.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3, 3 | null 4 | ] -------------------------------------------------------------------------------- /test/samples/MixedArray.json: -------------------------------------------------------------------------------- 1 | [ 2 | [1, true, { "foo": 3 }] 3 | ] -------------------------------------------------------------------------------- /test/samples/MixedArray2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/MixedArray2.json -------------------------------------------------------------------------------- /test/samples/Null.json: -------------------------------------------------------------------------------- 1 | null -------------------------------------------------------------------------------- /test/samples/Nulls.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/Nulls.json -------------------------------------------------------------------------------- /test/samples/Number.json: -------------------------------------------------------------------------------- 1 | 3 -------------------------------------------------------------------------------- /test/samples/Numbers.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3, 3 | 4 4 | ] -------------------------------------------------------------------------------- /test/samples/OptionalField.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/OptionalField.json -------------------------------------------------------------------------------- /test/samples/PrimitiveArray.json: -------------------------------------------------------------------------------- 1 | [ 2 | [1, 2] 3 | ] -------------------------------------------------------------------------------- /test/samples/String.json: -------------------------------------------------------------------------------- 1 | "hello" -------------------------------------------------------------------------------- /test/samples/Strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/Strings.json -------------------------------------------------------------------------------- /test/samples/TwitterStream.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/TwitterStream.json -------------------------------------------------------------------------------- /test/samples/WorldBank.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/samples/WorldBank.json -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jvilk/MakeTypes/HEAD/tsconfig.json --------------------------------------------------------------------------------