generate d.ts file from yaml
yarn add yaml-dts -D
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]
npx yaml-dts a.yml
npx yaml-dts b.yaml
npx yaml-dts config/*
npx yaml-dts config/*.yml
npx yaml-dts config/*.yaml