forked from seek-oss/css-modules-typescript-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support all possible class names characters
BREAKING CHANGE: Updates the declaration template. This change allows any possible class name to be exported - even those whose names don't comply with typescript variable name constraints. Resolves seek-oss#6.
- Loading branch information
1 parent
90f3131
commit e7342df
Showing
7 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const classInBothFiles: string; | ||
export const classInTypeScriptFile: string; | ||
interface CssExports { | ||
'classInBothFiles': string; | ||
'classInTypeScriptFile': string; | ||
} | ||
declare var cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,8 @@ | |
.otherClass { | ||
display: block; | ||
} | ||
|
||
.hyphened-classname, | ||
.underscored_classname { | ||
color: papayawhip; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const otherClass: string; | ||
export const someClass: string; | ||
export const validClass: string; | ||
interface CssExports { | ||
'hyphened-classname': string; | ||
'otherClass': string; | ||
'someClass': string; | ||
'underscored_classname': string; | ||
'validClass': string; | ||
} | ||
declare var cssExports: CssExports; | ||
export = cssExports; |