UNPKG

1.2 kBTypeScriptView Raw
1interface patchComponents {
2 [patchName: string]: number | string;
3}
4interface PlatConfig {
5 libName: string;
6 styleExt?: string;
7 xmlExt?: string;
8 jsExt?: string;
9 helpers: string;
10 patchComponents: patchComponents;
11 disabledTitleBarPages: Set<string>;
12 patchPages?: any;
13}
14declare enum Platforms {
15 wx = "wx",
16 qq = "qq",
17 ali = "ali",
18 bu = "bu",
19 tt = "tt",
20 quick = "quick",
21 h5 = "h5",
22 QIHOO = "360"
23}
24export declare type validatePlatforms = 'wx' | 'qq' | 'ali' | 'bu' | 'tt' | 'quick' | 'h5' | '360';
25export interface GlobalConfigMap {
26 buildType: validatePlatforms;
27 buildDir: string;
28 sourceDir: string;
29 huawei: boolean;
30 '360mode': boolean;
31 patchComponents: patchComponents;
32 pluginTags: any;
33 plugins: any;
34 compress?: boolean;
35 typescript?: boolean;
36 WebViewRules?: any;
37 [Platforms.wx]: PlatConfig;
38 [Platforms.qq]: PlatConfig;
39 [Platforms.ali]: PlatConfig;
40 [Platforms.bu]: PlatConfig;
41 [Platforms.quick]: PlatConfig;
42 [Platforms.tt]: PlatConfig;
43 [Platforms.h5]: PlatConfig;
44 [Platforms.QIHOO]: PlatConfig;
45}
46declare const config: GlobalConfigMap;
47export default config;