0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

fix typescript error

This commit is contained in:
Tan Li Hau 2019-10-17 21:47:40 +08:00
parent 8c4fd74543
commit 6a98febf5f

View File

@ -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 {