Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 550 Bytes

File metadata and controls

12 lines (8 loc) · 550 Bytes

Default Export Example

This example contains:

  • Class names that are expected to be kebab (param) cased. Since variables cannot contain a - this can be achieved using a type with default export.
  • Class names that are TypeScript keywords (eg: while) that cannot be used as named constants.

The command to generate the proper type files would look like this (in the root of this repository):

npm run typed-scss-modules "examples/default-export/**/*.scss" -- --exportType default --nameFormat kebab --banner '// example banner'