Skip to content
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

[Feature Request] TypeScript support #50

Open
InfamousStarFox opened this issue Oct 27, 2021 · 1 comment
Open

[Feature Request] TypeScript support #50

InfamousStarFox opened this issue Oct 27, 2021 · 1 comment

Comments

@InfamousStarFox
Copy link

It would be great if TypeScript support was added. Currently I get the error:

Could not find a declaration file for module 'react-svgmt'.
'/node_modules/react-svgmt/index.js' implicitly has an 'any' type.

Try `npm i --save-dev @types/react-svgmt` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-svgmt';`ts

When running the recommended npm i --save-dev @types/react-svgmt I get:

$ npm i --save-dev @types/react-svgmt
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2freact-svgmt - Not found
npm ERR! 404
npm ERR! 404  '@types/react-svgmt@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
@hugozap
Copy link
Owner

hugozap commented Nov 8, 2021

Hi! That would be awesome to have. I'm not able to work on it at the moment but hopefully someone could create a PR with the definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants