-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathrun.d.ts
47 lines (42 loc) · 1.03 KB
/
run.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
import { EventEmitter } from "events";
import { IBuildData } from "./build";
declare global {
interface IRunData {
liveSyncInfo: ILiveSyncInfo;
deviceDescriptors: ILiveSyncDeviceDescriptor[];
}
interface IDeployData {
deviceDescriptors: ILiveSyncDeviceDescriptor[];
}
interface IStopRunData {
projectDir: string;
deviceIdentifiers?: string[];
stopOptions?: {
shouldAwaitAllActions: boolean;
keepProcessAlive?: boolean;
};
}
interface IRunController extends EventEmitter {
run(runData: IRunData): Promise<void>;
stop(data: IStopRunData): Promise<void>;
getDeviceDescriptors(data: {
projectDir: string;
}): ILiveSyncDeviceDescriptor[];
}
interface IDeviceInstallAppService {
installOnDevice(
device: Mobile.IDevice,
buildData: IBuildData,
packageFile?: string
): Promise<void>;
installOnDeviceIfNeeded(
device: Mobile.IDevice,
buildData: IBuildData,
packageFile?: string
): Promise<void>;
shouldInstall(
device: Mobile.IDevice,
buildData: IBuildData
): Promise<boolean>;
}
}