@tdcerhverv/typed-svg-modules
v0.2.0
Published
Creates .d.ts files from .svg files
Downloads
218
Readme
Developer tools for auto generating .d.ts files from .svg files
Features
- Provides command
tsm
and options, see usage. - The command will
.d.ts
declaration for.svg
files, 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-modules
Usage
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