From 5ec41e91a8096e8a27a19d6a628ac9f9ed0ec253 Mon Sep 17 00:00:00 2001 From: "Lyu, Wei Da" Date: Fri, 25 Oct 2024 09:25:57 +0800 Subject: [PATCH] fix build --- packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts b/packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts index 8184da952..225dd9a60 100644 --- a/packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts +++ b/packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts @@ -550,9 +550,9 @@ export class ExportedNames { * Adds export to map */ private addExport( - name: ts.Identifier, + name: ts.ModuleExportName, isLet: boolean, - target: ts.Identifier = null, + target: ts.ModuleExportName = null, type: ts.TypeNode = null, required = false, isNamedExport = false @@ -601,7 +601,7 @@ export class ExportedNames { }); } - private getDoc(target: ts.BindingName) { + private getDoc(target: ts.BindingName | ts.ModuleExportName) { let doc = undefined; // Traverse `a` one up. If the declaration is part of a declaration list, // the comment is at this point already