forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypings.d.ts
More file actions
46 lines (44 loc) · 1.27 KB
/
Copy pathtypings.d.ts
File metadata and controls
46 lines (44 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import 'umi/typings';
import { IVersionResponse } from '@/typings';
declare module 'monaco-editor/esm/vs/basic-languages/sql/sql';
declare module 'monaco-editor/esm/vs/language/typescript/ts.worker.js';
declare module 'monaco-editor/esm/vs/editor/editor.worker.js';
declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production'
readonly UMI_ENV: string
readonly __ENV: string;
}
}
declare global {
interface Window {
_Lang: string;
_APP_PORT: string;
_BUILD_TIME: string;
_BaseURL: string;
_AppThemePack: { [key in string]: string };
_appGatewayParams: IVersionResponse;
_notificationApi: any;
_indexedDB: any;
electronApi?: {
startServerForSpawn: () => void;
quitApp: () => void;
setBaseURL: (baseUrl: string) => void;
registerAppMenu: (data: any) => void;
setForceQuitCode: (code: boolean) => void;
setMaximize: () => void;
getPlatform: () => {
isLinux: boolean,
isWin: boolean,
isMac: boolean,
};
minimizeWindow: () => void;
closeWindow: () => void;
isMaximized: () => boolean;
};
}
const __APP_VERSION__: string;
const __BUILD_TIME__: string;
const __ENV__: string;
const __APP_PORT__: string;
}