Add generics to server add-on connection

Reviewed By: mweststrate

Differential Revision: D34307356

fbshipit-source-id: 27e61355a85995368ebb197c42d58f4145473567
This commit is contained in:
Andrey Goncharov
2022-02-28 03:50:34 -08:00
committed by Facebook GitHub Bot
parent 673bb9135e
commit 01a5f3da90
14 changed files with 129 additions and 46 deletions

View File

@@ -8,12 +8,7 @@
*/
import {SandyPluginDefinition} from './SandyPluginDefinition';
import {
BasePluginInstance,
BasePluginClient,
EventsContract,
MethodsContract,
} from './PluginBase';
import {BasePluginInstance, BasePluginClient} from './PluginBase';
import {FlipperLib} from './FlipperLib';
import {Atom, ReadOnlyAtom} from '../state/atom';
import {
@@ -22,6 +17,8 @@ import {
DeviceLogEntry,
CrashLog,
ServerAddOnControls,
EventsContract,
MethodsContract,
} from 'flipper-common';
export type DeviceLogListener = (entry: DeviceLogEntry) => void;