From 6a98febf5fb41d54c4bd1446934a6f4624657eb5 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Thu, 17 Oct 2019 21:47:40 +0800 Subject: [PATCH] fix typescript error --- src/compiler/compile/render_dom/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 83b0c6ef0a..582d9041cc 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -224,7 +224,7 @@ export default function dom( component.rewrite_props(({ name, reassigned, export_name }) => { const value = `$${name}`; - let insert: string; + let insert: Node[]; if (reassigned || export_name) { insert = b`${`$$subscribe_${name}`}()`; } else {