Add custom timeout to Device.installApp
Reviewed By: lblasa Differential Revision: D39728545 fbshipit-source-id: be77a2e7ddac4071c9cafc88e67b793ee8c7631c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
dd7ba2d6fc
commit
228de6c542
@@ -470,6 +470,9 @@ export type FlipperServerConfig = {
|
||||
type?: FlipperServerType;
|
||||
};
|
||||
|
||||
export interface FlipperServerExecOptions {
|
||||
timeout: number;
|
||||
}
|
||||
export interface FlipperServer {
|
||||
connect(): Promise<void>;
|
||||
on<Event extends keyof FlipperServerEvents>(
|
||||
@@ -480,6 +483,11 @@ export interface FlipperServer {
|
||||
event: Event,
|
||||
callback: (payload: FlipperServerEvents[Event]) => void,
|
||||
): void;
|
||||
exec<Event extends keyof FlipperServerCommands>(
|
||||
options: FlipperServerExecOptions,
|
||||
event: Event,
|
||||
...args: Parameters<FlipperServerCommands[Event]>
|
||||
): ReturnType<FlipperServerCommands[Event]>;
|
||||
exec<Event extends keyof FlipperServerCommands>(
|
||||
event: Event,
|
||||
...args: Parameters<FlipperServerCommands[Event]>
|
||||
|
||||
Reference in New Issue
Block a user