Skip to content

Commit 5cc0eba

Browse files
docs: typescript migration (#1604)
1 parent d5ba44a commit 5cc0eba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,26 @@ module.exports = {
7373
};
7474
```
7575

76+
Typescript migration:
77+
78+
Before:
79+
80+
```ts
81+
declare module '*.module.css' {
82+
const classes: { [key: string]: string };
83+
export default classes;
84+
}
85+
```
86+
87+
After:
88+
89+
```ts
90+
declare module '*.module.css' {
91+
const classes: { [key: string]: string };
92+
export = classes;
93+
}
94+
```
95+
7696
* The `modules.exportLocalsConvention` has the value `as-is` when the `modules.namedExport` option is `true` and you don't specify a value
7797
* Minimum supported webpack version is `5.27.0`
7898
* Minimum supported Node.js version is `18.12.0`

0 commit comments

Comments
 (0)