feat: 抽离默认配置选项

This commit is contained in:
xiaoxian521
2021-10-08 11:32:50 +08:00
parent 13749c784d
commit fc5cec54b0
5 changed files with 56 additions and 45 deletions

8
types/global.d.ts vendored
View File

@@ -82,6 +82,14 @@ declare global {
VITE_GENERATE_UI: string;
}
declare interface ServerConfigs {
Version?: string;
KeepAlive?: boolean;
Locale?: string;
Layout?: string;
MapConfigure?: any;
}
function parseInt(s: string | number, radix?: number): number;
function parseFloat(string: string | number): number;