-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathrun.d.ts
31 lines (25 loc) · 939 Bytes
/
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
import { EventEmitter } from "events";
declare global {
interface IRunData {
liveSyncInfo: ILiveSyncInfo;
deviceDescriptors: ILiveSyncDeviceDescriptor[];
}
interface IDeployData {
deviceDescriptors: ILiveSyncDeviceDescriptor[];
}
interface IStopRunData {
projectDir: string;
deviceIdentifiers?: string[];
stopOptions?: { shouldAwaitAllActions: 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>;
}
}