From 2c6a6ba440cc3c2d478f557f0402879f28e7db1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 20 Jan 2025 16:47:06 +0800 Subject: [PATCH] fix: type --- src/index.ts | 1 + src/universal/LiteLoader.d.ts | 6 ++++++ src/universal/napcat.ts | 3 +-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/universal/LiteLoader.d.ts diff --git a/src/index.ts b/src/index.ts index e69de29b..e6828d58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -0,0 +1 @@ +import '@/universal/napcat'; \ No newline at end of file diff --git a/src/universal/LiteLoader.d.ts b/src/universal/LiteLoader.d.ts new file mode 100644 index 00000000..3f8f95ff --- /dev/null +++ b/src/universal/LiteLoader.d.ts @@ -0,0 +1,6 @@ +declare global { + namespace globalThis { + var LiteLoader: Symbol; + } +} +export {} \ No newline at end of file diff --git a/src/universal/napcat.ts b/src/universal/napcat.ts index 1c07175f..016a4158 100644 --- a/src/universal/napcat.ts +++ b/src/universal/napcat.ts @@ -1,7 +1,6 @@ import { NCoreInitShell } from "@/shell/base"; - export * from "@/framework/napcat"; export * from "@/shell/base"; -if ((global as any).LiteLoader == undefined) { +if (global.LiteLoader == undefined) { NCoreInitShell(); } \ No newline at end of file