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.
2 parents 7e734bd + f1ef382 commit 21da1dbCopy full SHA for 21da1db
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