You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a Typescript newbie and I have a question not strictly related to this project: I used css-modules-typescript-loader to generate TypeScript declarations:
I have got this structure:
src/Components/MyComponent
├── MyComponent.module.css // Css modules styles
├── MyComponent.module.css.d.ts // Autogenerated style type declarations
└── MyComponent.tsx // The React component
Inside MyComponent.tsx I have a function myFunc passing as a parameter styles object, in this way:
Hi, I'm a Typescript newbie and I have a question not strictly related to this project: I used
css-modules-typescript-loader
to generate TypeScript declarations:I have got this structure:
Inside
MyComponent.tsx
I have a functionmyFunc
passing as a parameterstyles
object, in this way:Is it possible to import Interface from
MyComponent.module.css.d.ts
adding types like:How can I do it?
The text was updated successfully, but these errors were encountered: