Skip to content

Commit a2c8ded

Browse files
committed
fix: add css module typing for TS apps
1 parent b656b55 commit a2c8ded

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ declare module '*.html' {
99
export const shadowOptions: { mode: 'open' | 'closed'} | undefined;
1010
export function getHTMLOnlyElement();
1111
}
12+
13+
// @if css-module
14+
declare module '*.css' {
15+
const value: Record<string, string>;
16+
export default value;
17+
}
18+
// @endif
19+
// @if !css-module
20+
declare module '*.css'
21+
// @endif

0 commit comments

Comments
 (0)