Generates TypeScript interfaces from a JSON object
npm install json-tellGenerates TypeScript interfaces from a JSON object
- Node 10+
- Zero Dependencies
#### Installation
```
npm install json-tell
``
yarn add json-tell
#### Usage
`tsx
import {getTypes} from 'json-tell';
const options = {
exported: false,
root: 'RootObject'
};
const json = getJsonFromSomewhere();
console.log(getTypes(json, options));
`
#### Options
- exported: If true, will add export to all interfacesroot
- : Specify the name of the root object interface (defaults to 'RootObject'`)