jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
585 stars 61 forks source link

Specify the right type for the "svgoConfig" option #34

Closed aradalvand closed 2 years ago

aradalvand commented 2 years ago

The type of the svgoConfig option is currently just Object, which doesn't provide proper type-safety for those who are using TypeScript, I changed the type to SVGO's OptimizeOptions.

jpkleemans commented 2 years ago

Thanks!

casey6 commented 2 years ago

svgo does not include any types, should this project have @types/svgo as a dev dependency as well?