0.2.1 • Published 9 months ago
@tdcerhverv/typed-svg-modules v0.2.1
Developer tools for auto generating .d.ts files from .svg files
Features
- Provides command
tsmand options, see usage. - The command will
.d.tsdeclaration for.svgfiles, inspired bytyped-css-modules.
Note: If you have locally defined .d.ts files for your .svg they will not be overwritten
Install
npm i -D @tdcerhverv/typed-svg-modulesUsage
Once installed as a dependency, run this command to get all options
npx tsm <search directory>Or run npx tsm -h to get help
Create .svg.d.ts from *.svg files.
Usage: tsm <search directory> [options]
Options:
-s Silent output. Does not show "info" messages [boolean]
-h Show help [boolean]
-v, --version Show version number [boolean]
Examples:
tsm src