@tdcerhverv/typed-svg-modules
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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 by typed-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

Readme

Keywords

Package Sidebar

Install

npm i @tdcerhverv/typed-svg-modules

Weekly Downloads

62

Version

0.2.0

License

MIT

Unpacked Size

8.42 kB

Total Files

8

Last publish

Collaborators

  • antongb
  • dev_jonas
  • jeppebenjaminsen
  • ahhah
  • abdok
  • mikkv
  • clausr1990
  • tdc-sigbe
  • mdige
  • nuudaybot
  • tdc-olila
  • jeroen.dk.nl
  • renand
  • stegr
  • m84100
  • m92212
  • m87979
  • vertic
  • rasladev
  • muddz
  • tajsonik
  • linnt
  • molg