parcel-plugin-typed-css-modules icon indicating copy to clipboard operation
parcel-plugin-typed-css-modules copied to clipboard

Runtime property names have hyphens, while d.ts is camel cased.

Open saabi opened this issue 6 years ago • 3 comments

The following CSS:

#app-root { ... }
.widget { ... }
.ticker { ... }
.ticker .selected { ... }
.positive { ... }
.negative { ... }

generates the following d.ts with names camel cased:

export const appRoot: string;
export const widget: string;
export const ticker: string;
export const selected: string;
export const positive: string;
export const negative: string;

But during runtime, the hyphens remain and there is no camel cased alternative:

image

saabi avatar Nov 10 '18 14:11 saabi