From e5a7248e8907582ef2fcfa25b845e1418e69266e Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Thu, 20 Apr 2023 01:40:26 -0400 Subject: [PATCH] Add @ts-ignore and reason why --- src/compiler/compile/nodes/Slot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Slot.ts b/src/compiler/compile/nodes/Slot.ts index c21a48f5d6..97465068c4 100644 --- a/src/compiler/compile/nodes/Slot.ts +++ b/src/compiler/compile/nodes/Slot.ts @@ -7,7 +7,8 @@ import { TemplateNode } from '../../interfaces'; import compiler_errors from '../compiler_errors'; export default class Slot extends Element { - type: 'Element'; + // @ts-ignore Slot elements have the 'Slot' type, but TypeScript doesn't allow us to have 'Slot' when it extends Element + type: 'Slot'; name: string; children: INode[]; slot_name: string;