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