workaround ts error

I faced this error and I avoid it by workaround.
'error TS2590: Expression produces a union type that is too complex to represent.'
pull/6898/head
baseballyama 5 years ago
parent dc25e2e0cf
commit 02cc14fbd3

@ -200,7 +200,7 @@ export default class Element extends Node {
return this.name === 'svelte:element'; return this.name === 'svelte:element';
} }
constructor(component: Component, parent: Node, scope: TemplateScope, info: TemplateNode) { constructor(component: Component, parent: Node, scope: TemplateScope, info: any) {
super(component, parent, scope, info); super(component, parent, scope, info);
this.name = info.name; this.name = info.name;

Loading…
Cancel
Save