0.1.2 • Published 3 years ago

yaml-dts v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

yaml-dts-gen

generate d.ts file from yaml

Install

yarn add yaml-dts -D

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

Example

npx yaml-dts a.yml
npx yaml-dts b.yaml
npx yaml-dts config/*
npx yaml-dts config/*.yml
npx yaml-dts config/*.yaml