Rename RemoteNodeAPI tp RemoteServerContext
Reviewed By: mweststrate Differential Revision: D32921160 fbshipit-source-id: 9d6b723427d7a819f2fc1b7168f6d1077dc56bd9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0e785fb18d
commit
4cb80a452f
@@ -112,7 +112,7 @@ test('Correct top level API exposed', () => {
|
||||
"NormalizedMenuEntry",
|
||||
"Notification",
|
||||
"PluginClient",
|
||||
"RemoteNodeAPI",
|
||||
"RemoteServerContext",
|
||||
]
|
||||
`);
|
||||
});
|
||||
|
||||
@@ -39,7 +39,7 @@ export {
|
||||
setFlipperLibImplementation as _setFlipperLibImplementation,
|
||||
FileDescriptor,
|
||||
FileEncoding,
|
||||
RemoteNodeAPI,
|
||||
RemoteServerContext,
|
||||
} from './plugin/FlipperLib';
|
||||
export {
|
||||
MenuEntry,
|
||||
|
||||
@@ -28,7 +28,7 @@ export interface FileDescriptor {
|
||||
path?: string;
|
||||
}
|
||||
|
||||
export type RemoteNodeAPI = {
|
||||
export type RemoteServerContext = {
|
||||
childProcess: {
|
||||
exec(
|
||||
command: string,
|
||||
@@ -134,7 +134,7 @@ export interface FlipperLib {
|
||||
homePath: string;
|
||||
appPath: string;
|
||||
};
|
||||
removeNodeAPI: RemoteNodeAPI;
|
||||
remoteServerContext: RemoteServerContext;
|
||||
}
|
||||
|
||||
export let flipperLibInstance: FlipperLib | undefined;
|
||||
|
||||
@@ -389,7 +389,7 @@ export function createMockFlipperLib(options?: StartPluginOptions): FlipperLib {
|
||||
appPath: process.cwd(),
|
||||
homePath: `/dev/null`,
|
||||
},
|
||||
removeNodeAPI: {
|
||||
remoteServerContext: {
|
||||
childProcess: {
|
||||
exec: jest.fn(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user