We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e734bd commit f1ef382Copy full SHA for f1ef382
src/css.ts
@@ -2,8 +2,8 @@ import { mainWindow } from 'vs/base/browser/window'
2
3
const sheets: CSSStyleSheet[] = []
4
5
-export function registerCss(module: unknown) {
6
- const exportedValue = (module as { default?: string | CSSStyleSheet }).default
+export function registerCss(module: { default?: string | CSSStyleSheet } | undefined) {
+ const exportedValue = module?.default
7
8
let sheet = undefined
9
if (typeof exportedValue === 'string') {
0 commit comments