material-ui-banner
material-ui-banner copied to clipboard
Provide @types/material-ui-banner
Using this in a React+TypeScript project, I get
error TS7016: Could not find a declaration file for module 'material-ui-banner'. 'node_modules/material-ui-banner/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/material-ui-banner` if it exists or add a new declaration (.d.ts) file containing `declare module 'material-ui-banner';`
Hi @flyrev thanks for the issue. I'm not particularly well versed in Typescript for the front-end, but I'd be happy to accept a merge request from an enterprising individual that was willing to write a d.ts file for the project.
Would you be interested in a Typescript rewrite instead? I'm willing to convert the files; I don't think that much would even need to change. You're using ES6 imports, webpack, etc. Having a separate .d.ts file would probably require more code, and you'd have to maintain it with any future updates.