Skip to content

Commit 846b5de

Browse files
docs: refine CSS Modules type (#222)
1 parent c782847 commit 846b5de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/docs/plugins/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ To support typing of `.module.css` imports, you can add this type definition to
158158

159159
```ts
160160
declare module "*.module.css" {
161-
const styles: { [className: string]: string };
161+
const styles: Readonly<Record<string, string>>;
162162
export default styles;
163163
}
164164
```

0 commit comments

Comments
 (0)