From fe854b4e2d2dc434772d51877c1d31c04227d83e Mon Sep 17 00:00:00 2001 From: KaKa <23028015+climba03003@users.noreply.github.com> Date: Thu, 12 Sep 2024 17:38:45 +0800 Subject: [PATCH] build: fix build issue (#200) --- packages/abstract-send/fast-decode-uri-component.d.ts | 3 ++- packages/abstract-send/tsconfig.cjs.json | 2 +- packages/abstract-send/tsconfig.mjs.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/abstract-send/fast-decode-uri-component.d.ts b/packages/abstract-send/fast-decode-uri-component.d.ts index ce0fae73..27261c06 100644 --- a/packages/abstract-send/fast-decode-uri-component.d.ts +++ b/packages/abstract-send/fast-decode-uri-component.d.ts @@ -1,3 +1,4 @@ declare module 'fast-decode-uri-component' { - export default (path: string): string | undefined + function decode(path: string): string | undefined + export default decode } diff --git a/packages/abstract-send/tsconfig.cjs.json b/packages/abstract-send/tsconfig.cjs.json index 97d519dc..853a53ae 100644 --- a/packages/abstract-send/tsconfig.cjs.json +++ b/packages/abstract-send/tsconfig.cjs.json @@ -3,5 +3,5 @@ "compilerOptions": { "outDir": "lib" }, - "include": ["lib/**/*"] + "include": ["lib/**/*", "fast-decode-uri-component.d.ts"] } diff --git a/packages/abstract-send/tsconfig.mjs.json b/packages/abstract-send/tsconfig.mjs.json index c119ce6b..07bbdb96 100644 --- a/packages/abstract-send/tsconfig.mjs.json +++ b/packages/abstract-send/tsconfig.mjs.json @@ -4,7 +4,7 @@ "module": "ESNext", "outDir": "lib/mjs" }, - "include": ["lib/**/*"], + "include": ["lib/**/*", "fast-decode-uri-component.d.ts"], "tsc-alias": { "resolveFullPaths": true }