From 02bc49b0611fbb10bd4f05b6f237c4b4de3a557a Mon Sep 17 00:00:00 2001 From: Mathias Picker <48158184+MathiasWP@users.noreply.github.com> Date: Sun, 8 May 2022 15:40:49 +0200 Subject: [PATCH] Update src/runtime/internal/dom.ts Co-authored-by: Yuichiro Yamashita --- src/runtime/internal/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index 5543d63fb7..ca17072bd6 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -156,7 +156,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document { export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement) { append((node as Document).head || node, style); - return style.sheet; + return style.sheet as CSSStyleSheet; } export function append_hydration(target: NodeEx, node: NodeEx) {