Quramy / typed-css-modules

Creates .d.ts files from CSS Modules .css files
MIT License
1.05k stars 69 forks source link

Definitions are created for nested global class names #24

Open aaronbeall opened 7 years ago

aaronbeall commented 7 years ago

Given this CSS:

:global .top {
  & .inner {
  }
}

The generated typings correctly exclude top but incorrectly include inner.

happycollision commented 3 months ago

I believe the problem is deeper than this plugin, and lives here: https://github.com/css-modules/postcss-modules-local-by-default/issues/45