Client fixes

Summary:
Event emitter was typed any. Therefore, Client extended any and thing went south.
removing the explicit any type and fixing flow errors.

Reviewed By: jknoxville

Differential Revision: D15987630

fbshipit-source-id: 9456149d46f839d9579fcc2671ab2a82935fc23a
This commit is contained in:
Daniel Büchele
2019-07-01 02:32:12 -07:00
committed by Facebook Github Bot
parent 1a0ee24b1a
commit 468468a3bc
3 changed files with 7 additions and 7 deletions

View File

@@ -156,6 +156,7 @@ export class FlipperDevicePlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
constructor(props: Props<P>) {
super(props);
// $FlowFixMe props.target will be instance of Device
this.device = props.target;
}
@@ -203,8 +204,8 @@ export class FlipperPlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
client: PluginClient;
realClient: Client;
getDevice(): ?BaseDevice {
return this.realClient.getDevice();
getDevice(): Promise<BaseDevice> {
return this.realClient.device;
}
getAndroidDevice(): AndroidDevice {