Expose intern graphQL reuqests to plugins

Summary: Some intern plugins use it, an dit is currently missing in FlipperLib

Reviewed By: timur-valiev

Differential Revision: D36313032

fbshipit-source-id: 5ea8e250f1d0bc8831727abd883d953286a022d4
This commit is contained in:
Andrey Goncharov
2022-05-11 06:48:05 -07:00
committed by Facebook GitHub Bot
parent d0ccf51af6
commit ad76060614
4 changed files with 23 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import {
fsConstants,
EnvironmentInfo,
FSStatsLike,
FlipperServerCommands,
} from 'flipper-common';
import {CreatePasteArgs, CreatePasteResult} from './Paste';
@@ -179,6 +180,12 @@ export interface FlipperLib {
os: EnvironmentInfo['os'];
};
remoteServerContext: RemoteServerContext;
intern: InternAPI;
}
interface InternAPI {
graphGet: FlipperServerCommands['intern-graph-get'];
graphPost: FlipperServerCommands['intern-graph-post'];
}
export let flipperLibInstance: FlipperLib | undefined;