Json2ts
Automatically generate Typescript Definition file from url
Install
npm install json2ts-core --save-dev
Usage(CLI)
json2ts -u=your-web-url
--version Show version number [boolean]
-u, --url your web url [required]
-m, --method your web url method [default: "get"]
-t, --target typescript interface target folder path [default: "./interface"]
-p, --property export response property interface
-h, --help Show help [boolean]
Usage(API)
const json2ts =
License
The code is distributed under the MIT license