-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typescript option #89
Comments
See previous work in #130. |
Any updates on this? Thanks for SVGR btw! 👏😄 |
I think this should be left for user land. Because why not flow, and why not prop types? Template allows you to build anything. |
Because Typescript is very very popular, and I think it should be supported out of the box! |
Well, flow is also quite popular. I want it too like in my example :) |
Hopefully this get implemented soon. Looking forward to this :) |
@noahjohn9259 you already may add ts template with config. |
TypeScript is already supported using a custom template. https://www.smooth-code.com/open-source/svgr/docs/typescript/ |
@neoziro The custom template works great! However, when I use it from CLI the output filenames still have EDIT: Found |
the link is broken btw |
As mentioned in #38, it should be possible to generate a TypeScript file instead of a JavaScript file.
Some details are provided in #38
Usage in CLI
Usage in Node / Webpack
As a result, it will use a TypeScript friendly package and change the extension to ".ts".
The text was updated successfully, but these errors were encountered: