Skip to content

[Feature Request] TypeScript support #50

@InfamousStarFox

Description

@InfamousStarFox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions