json-dts-gen

0.0.1 • Public • Published

json-dts-gen

generate d.ts file from json

usage

as default, this cli generate .d.ts file. Its filename follows original yaml file, like original.yml, then generate original.d.ts .

npm i -g typescript
npx json-dts-gen [target yaml file]

example

curl https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.json -o petstore.json
npx json-dts-gen petstore.json

Package Sidebar

Install

npm i json-dts-gen

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.88 kB

Total Files

7

Last publish

Collaborators

  • mkusaka