├── .gitignore ├── .travis.yml ├── _.js ├── __tests__ ├── __snapshots__ │ └── fixtures.js.snap ├── array-mixed.js ├── array-numbers.js ├── array-objs-camel.js ├── array-objs.js ├── boolean.js ├── chrome │ ├── chrome.json │ └── out.d.ts ├── depth-01.js ├── depth-02.js ├── dup-02.js ├── dup-members-propname-mismatch.js ├── dup-members.js ├── dup-merge.js ├── dup.js ├── fixtures.js ├── flow.js ├── gmaps │ ├── in.json │ └── out.d.ts ├── invalid-interface-name.js ├── invalid-propname.js ├── large-01.js ├── magento │ ├── categories-out.d.ts │ ├── categories.json │ ├── out.d.ts │ └── product.json ├── missing-props.js ├── multi-complex.js ├── multi-missing.js ├── multi-union.js ├── multi │ ├── 01.json │ └── 02.json ├── namespace.js ├── null.js ├── numbers.js ├── petition │ ├── input.json │ └── output.d.ts ├── prefix-empty.js ├── prefix.js ├── rootName.js ├── swagger │ ├── schema.d.ts │ └── schema.json ├── top-level-array-mixed.js ├── top-level-array-objects.js ├── top-level-array.js ├── top-level-multi-arrays.js └── top-level-string.js ├── crossbow.yml ├── docs ├── css │ └── styles.css ├── dist │ ├── codemirror.js │ ├── index.js │ ├── javascript.js │ └── json-ts.min.js ├── index.html ├── javascript │ ├── index.html │ ├── javascript.js │ ├── json-ld.html │ └── typescript.html ├── json │ ├── invalid-keys.json │ ├── nested.json │ ├── optional.json │ └── recursive.json ├── lib │ ├── codemirror.css │ └── codemirror.js ├── package.json ├── src │ └── index.js └── yarn.lock ├── json-ts2.gif ├── package.json ├── readme.md ├── src ├── bin.ts ├── collapse-interfaces.ts ├── index.ts ├── parser.ts ├── printer.ts ├── transformer.ts └── util.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/.travis.yml -------------------------------------------------------------------------------- /_.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/_.js -------------------------------------------------------------------------------- /__tests__/__snapshots__/fixtures.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/__snapshots__/fixtures.js.snap -------------------------------------------------------------------------------- /__tests__/array-mixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/array-mixed.js -------------------------------------------------------------------------------- /__tests__/array-numbers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/array-numbers.js -------------------------------------------------------------------------------- /__tests__/array-objs-camel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/array-objs-camel.js -------------------------------------------------------------------------------- /__tests__/array-objs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/array-objs.js -------------------------------------------------------------------------------- /__tests__/boolean.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/boolean.js -------------------------------------------------------------------------------- /__tests__/chrome/chrome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/chrome/chrome.json -------------------------------------------------------------------------------- /__tests__/chrome/out.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/chrome/out.d.ts -------------------------------------------------------------------------------- /__tests__/depth-01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/depth-01.js -------------------------------------------------------------------------------- /__tests__/depth-02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/depth-02.js -------------------------------------------------------------------------------- /__tests__/dup-02.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/dup-02.js -------------------------------------------------------------------------------- /__tests__/dup-members-propname-mismatch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/dup-members-propname-mismatch.js -------------------------------------------------------------------------------- /__tests__/dup-members.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/dup-members.js -------------------------------------------------------------------------------- /__tests__/dup-merge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/dup-merge.js -------------------------------------------------------------------------------- /__tests__/dup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/dup.js -------------------------------------------------------------------------------- /__tests__/fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/fixtures.js -------------------------------------------------------------------------------- /__tests__/flow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/flow.js -------------------------------------------------------------------------------- /__tests__/gmaps/in.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/gmaps/in.json -------------------------------------------------------------------------------- /__tests__/gmaps/out.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/gmaps/out.d.ts -------------------------------------------------------------------------------- /__tests__/invalid-interface-name.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/invalid-interface-name.js -------------------------------------------------------------------------------- /__tests__/invalid-propname.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/invalid-propname.js -------------------------------------------------------------------------------- /__tests__/large-01.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/large-01.js -------------------------------------------------------------------------------- /__tests__/magento/categories-out.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/magento/categories-out.d.ts -------------------------------------------------------------------------------- /__tests__/magento/categories.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/magento/categories.json -------------------------------------------------------------------------------- /__tests__/magento/out.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/magento/out.d.ts -------------------------------------------------------------------------------- /__tests__/magento/product.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/magento/product.json -------------------------------------------------------------------------------- /__tests__/missing-props.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/missing-props.js -------------------------------------------------------------------------------- /__tests__/multi-complex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/multi-complex.js -------------------------------------------------------------------------------- /__tests__/multi-missing.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/multi-missing.js -------------------------------------------------------------------------------- /__tests__/multi-union.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/multi-union.js -------------------------------------------------------------------------------- /__tests__/multi/01.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/multi/01.json -------------------------------------------------------------------------------- /__tests__/multi/02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/multi/02.json -------------------------------------------------------------------------------- /__tests__/namespace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/namespace.js -------------------------------------------------------------------------------- /__tests__/null.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/null.js -------------------------------------------------------------------------------- /__tests__/numbers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/numbers.js -------------------------------------------------------------------------------- /__tests__/petition/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/petition/input.json -------------------------------------------------------------------------------- /__tests__/petition/output.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/petition/output.d.ts -------------------------------------------------------------------------------- /__tests__/prefix-empty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/prefix-empty.js -------------------------------------------------------------------------------- /__tests__/prefix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/prefix.js -------------------------------------------------------------------------------- /__tests__/rootName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/rootName.js -------------------------------------------------------------------------------- /__tests__/swagger/schema.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/swagger/schema.d.ts -------------------------------------------------------------------------------- /__tests__/swagger/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/swagger/schema.json -------------------------------------------------------------------------------- /__tests__/top-level-array-mixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/top-level-array-mixed.js -------------------------------------------------------------------------------- /__tests__/top-level-array-objects.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/top-level-array-objects.js -------------------------------------------------------------------------------- /__tests__/top-level-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/top-level-array.js -------------------------------------------------------------------------------- /__tests__/top-level-multi-arrays.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/top-level-multi-arrays.js -------------------------------------------------------------------------------- /__tests__/top-level-string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/__tests__/top-level-string.js -------------------------------------------------------------------------------- /crossbow.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/crossbow.yml -------------------------------------------------------------------------------- /docs/css/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/css/styles.css -------------------------------------------------------------------------------- /docs/dist/codemirror.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/dist/codemirror.js -------------------------------------------------------------------------------- /docs/dist/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/dist/index.js -------------------------------------------------------------------------------- /docs/dist/javascript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/dist/javascript.js -------------------------------------------------------------------------------- /docs/dist/json-ts.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/dist/json-ts.min.js -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/javascript/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/javascript/index.html -------------------------------------------------------------------------------- /docs/javascript/javascript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/javascript/javascript.js -------------------------------------------------------------------------------- /docs/javascript/json-ld.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/javascript/json-ld.html -------------------------------------------------------------------------------- /docs/javascript/typescript.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/javascript/typescript.html -------------------------------------------------------------------------------- /docs/json/invalid-keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/json/invalid-keys.json -------------------------------------------------------------------------------- /docs/json/nested.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/json/nested.json -------------------------------------------------------------------------------- /docs/json/optional.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/json/optional.json -------------------------------------------------------------------------------- /docs/json/recursive.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/json/recursive.json -------------------------------------------------------------------------------- /docs/lib/codemirror.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/lib/codemirror.css -------------------------------------------------------------------------------- /docs/lib/codemirror.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/lib/codemirror.js -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/src/index.js -------------------------------------------------------------------------------- /docs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/docs/yarn.lock -------------------------------------------------------------------------------- /json-ts2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/json-ts2.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/readme.md -------------------------------------------------------------------------------- /src/bin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/bin.ts -------------------------------------------------------------------------------- /src/collapse-interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/collapse-interfaces.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/parser.ts -------------------------------------------------------------------------------- /src/printer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/printer.ts -------------------------------------------------------------------------------- /src/transformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/transformer.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/src/util.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shakyShane/json-ts/HEAD/yarn.lock --------------------------------------------------------------------------------