style: 强类型大法
This commit is contained in:
1 parent
76501bae34
commit
70945cf2d8
191 files changed
+923
-806
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user