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
It's not clear to me how currently should types be declared for CSS modules.
For the context, I'm using Gatsby v3 with TypeScript and an example import would be:
import { Header } from './header.module.css';
However, the old style index.d.ts I had won't be suitable anymore since default exports were replaced with tree-shakeable variables:
There is https://github.com/Quramy/typed-css-modules, for anyone who might come across this issue. I use it in CI to generate types for my css modules before running my type checks.
It's not clear to me how currently should types be declared for CSS modules.
For the context, I'm using Gatsby v3 with TypeScript and an example import would be:
However, the old style
index.d.ts
I had won't be suitable anymore since default exports were replaced with tree-shakeable variables:That pretty much now ends up in this error:
I'm not sure how this can be handled in the latest version?
The text was updated successfully, but these errors were encountered: