CSS-Modules and typescript-types
Because I just saw https://github.com/solidjs/solid-docs-next/pull/114/files, I asked myself if solid-start should ship a solution for generating typings for css-modules.
ATM, if you use css-modules and do smth like import styles from 'Component.module.css', styles will be of type any. I think it should be typed if css-modules are advertised as "supported".
This could be done using something like https://github.com/activeguild/typescript-plugin-css-modules-vite. Note: There are several plugins out there and I did not have evaluated them.
This is a fair point and we should definitely try to do something about it, I wonder how typesafe we can make it.. there are levels .. do we want all classes exactly ?
Basically yes - at least until https://github.com/solidjs/solid/issues/1041 is solved :)
fwiw I'm using typed-css-modules
It works quite well, but you have to deal with extra .d.ts files everywhere. Would be nice if there was a solution that "just worked" both during dev and for CI without those extra files.