Thank you for your feedback Even a better one is this instead of the blanket type declare module "*.module.css" { const className: { [className: string]: string; }; export default className; }
@@jerrysofttechy6404 Glad to hear that. Personally also had a lot of errors on the same when I added typescript. With this I managed to resolve the error too. Not much of these modules were there on YT and people considered styled components over the modules but modules too work just well
I'm new to programming and I was struggling with importing images in TypeScript for a couple of hours. The .d.ts file with declaration of .jpg files sovled it all. Thanks!