1.0.2 • Published 5 years ago

typed-static-files v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

typed-static-files

create .d.ts file from static files

Installation

npm install typed-static-files

Usage

// create declare file for ./src/res/**/*.(png|jpg) and ./src/static/**/*.(png|jpg)
npx typed-sf -e png,jpg -s ./src/res,./src/static

If you have file: ./src/res/test.png

Will create a declaration file for it: ./src/res/test.png.d.ts

Options

aliasdefaultdescription
Required
--ext-eFile extension (* for all file) png,jpg,...
--searchFolder-sSearch folders where relate with 'cwd' option ./src/res,./src/static,...
 
Optional
--delete-dfalseAuto delete unused declare file
--cwdprocess.cwdThe current working directory in which to search.
--eollfThe declare file eol. 'lf', 'crlf', 'cr', 'auto'
--watch-wfalseWatch mode
--help-hhelp