-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathprepare.d.ts
56 lines (47 loc) · 1.28 KB
/
prepare.d.ts
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
47
48
49
50
51
52
53
54
55
56
import { EventEmitter } from "events";
import { IControllerDataBase } from "./data";
import { IPlatformData } from "./platform";
import { IProjectData } from "./project";
declare global {
interface IPrepareData extends IControllerDataBase {
release: boolean;
hmr: boolean;
env: any;
watch?: boolean;
watchNative: boolean;
watchNodeModules?: boolean;
// embedding
hostProjectPath?: string;
uniqueBundle: number;
}
interface IiOSCodeSigningData {
teamId: string;
provision: string;
mobileProvisionData: any;
}
interface IiOSPrepareData extends IPrepareData, IiOSCodeSigningData {}
interface IPrepareDataService {
getPrepareData(
projectDir: string,
platform: string,
data: any
): IPrepareData;
}
interface IPrepareController extends EventEmitter {
prepare(prepareData: IPrepareData): Promise<IPrepareResultData>;
stopWatchers(projectDir: string, platform: string): Promise<void>;
toggleFileWatcher: () => Promise<boolean>;
// toggleWatchNodeModules: () => Promise<boolean>;
}
interface IPrepareResultData {
platform: string;
hasNativeChanges: boolean;
}
interface IPrepareNativePlatformService {
prepareNativePlatform(
platformData: IPlatformData,
projectData: IProjectData,
prepareData: IPrepareData
): Promise<boolean>;
}
}