style: 强类型大法

This commit is contained in:
手瓜一十雪
2025-02-02 23:22:21 +08:00
parent ac193cc94a
commit 15854c605b
191 changed files with 923 additions and 806 deletions

View File

@@ -2,12 +2,6 @@ import { NCoreInitShell } from '@/shell/base';
export * from '@/framework/napcat';
export * from '@/shell/base';
interface LiteLoaderGlobal extends Global {
LiteLoader?: unknown;
}
declare const global: LiteLoaderGlobal;
if (global.LiteLoader === undefined) {
if ((global as unknown as { LiteLoader: unknown }).LiteLoader === undefined) {
NCoreInitShell();
}