Skip to content

mkusaka/yaml-dts-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-dts-gen

generate d.ts file from yaml

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 yaml-dts-gen [target yaml file]

example

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

About

generate d.ts file from yaml

Resources

License

Stars

Watchers

Forks

Packages

No packages published