Migrate BaseDevice from js to tsx

Summary: As per the title

Reviewed By: passy

Differential Revision: D16687261

fbshipit-source-id: a9d85424fb0a08fada7edd0355c356907518d366
This commit is contained in:
Pritesh Nandgaonkar
2019-08-09 06:50:45 -07:00
committed by Facebook Github Bot
parent 18f43daa04
commit 47a55b0f26
29 changed files with 60 additions and 61 deletions

View File

@@ -12,7 +12,7 @@ import Client from './Client';
import {Store, MiddlewareAPI} from './reducers/index';
import {MetricType} from './utils/exportMetrics.js';
import {ReactNode, Component} from 'react';
import BaseDevice from './devices/BaseDevice.js';
import BaseDevice from './devices/BaseDevice';
// This function is intended to be called from outside of the plugin.
// If you want to `call` from the plugin use, this.client.call
@@ -163,7 +163,7 @@ export class FlipperDevicePlugin<
constructor(props: Props<P>) {
super(props);
// $FlowFixMe props.target will be instance of Device
// @ts-ignore props.target will be instance of Device
this.device = props.target;
}
@@ -192,7 +192,7 @@ export class FlipperPlugin<
super(props);
const {id} = this.constructor;
this.subscriptions = [];
// $FlowFixMe props.target will be instance of Client
// @ts-ignore props.target will be instance of Client
this.realClient = props.target;
this.client = {
call: (method, params) => this.realClient.call(id, method, true, params),