jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
70 stars 21 forks source link

hints for using with typescript #42

Closed stefanpl closed 3 years ago

stefanpl commented 3 years ago

Hey,

thanks a lot for providing this plugin. I had a bit of a hard time using it with Typescript though, until I found this post on SO.

Although it's not strictly related to your plugin, I think it would be nice to have a short passage about it in the readme. I think there might be more people like me who want to start using Gatsby with Typescript, and don't have prior experience with having to setup the Typescript-SVG bit themselves.

Please see if you agree, and feel free to modify as you see fit.

Peace

jacobmischka commented 3 years ago

Thanks for the PR!

stefanpl commented 3 years ago

Thanks for merging it! And once again, thanks for providing the plugin :)