json-to-ts icon indicating copy to clipboard operation
json-to-ts copied to clipboard

Convert jsons to typescript interfaces

Results 16 json-to-ts issues
Sort by recently updated
recently updated
newest added

Bumps [semver](https://github.com/npm/node-semver) from 5.7.0 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3. Changelog Sourced from y18n's changelog. 4.0.3 (2021-04-07) Bug Fixes release: 4.x.x should not enforce Node 10 (#126) (1e21a53) 4.0.1 (2020-11-30) Bug Fixes address prototype...

dependencies

Hi, When a JSON has empty key string, this error occurs as the `reduce` call in the [pascelCase function](https://github.com/MariusAlch/json-to-ts/blob/83d3ae9d9c03e13d60479fd5e7c4313d303a3a3b/src/get-names.ts#L104) of getNames module doesn't have a default value. ```json { "a":...

I have a use case where I don't want to pollute typescript's scope with additional types, I made a tiny hack wrapper that removes type duplication prevention but I think...

In the example: ``` const JsonToTS = require('json-to-ts') const json = { cats: [ {name: 'Kittin'}, {name: 'Mittin'} ], favoriteNumber: 42, favoriteWord: 'Hello' } JsonToTS(json).forEach( typeInterface => { console.log(typeInterface) })...

Would be super useful if there was an option to sort keys in the interface.