zeokku / vite-plugin-vue-css-modules

✨ Ultimate solution for using CSS modules without any hassle.
17 stars 0 forks source link

Typescript CSS module macro typings #1

Open Lutymane opened 1 year ago

Lutymane commented 1 year ago

Make $cssModule macro typed corresponding to SFC's <style module> blocks.

VS Code plugin or a task.

Use special wrapping comments to easily update types

// @css-modules-types-start
/* ... */
// @css-modules-types-end

or actually make a Volar plugin https://github.com/johnsoncodehk/volar/blob/master/plugins/pug/src/index.ts

Lutymane commented 1 year ago

https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin