Add exportFileBinary to FlipperLib

Reviewed By: antonk52

Differential Revision: D39692937

fbshipit-source-id: 7b3c78d004a9734cd8ae660d5782be1f02c00009
This commit is contained in:
Andrey Goncharov
2022-09-21 09:26:19 -07:00
committed by Facebook GitHub Bot
parent f3b7552338
commit 3314c77ce9
8 changed files with 43 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ export interface RenderHost {
showSelectDirectoryDialog?(defaultPath?: string): Promise<string | undefined>;
importFile: FlipperLib['importFile'];
exportFile: FlipperLib['exportFile'];
exportFileBinary: FlipperLib['exportFileBinary'];
hasFocus(): boolean;
onIpcEvent<Event extends keyof MainProcessEvents>(
event: Event,

View File

@@ -36,6 +36,7 @@ export function baseFlipperLibImplementation(
openLink: renderHost.openLink,
importFile: renderHost.importFile,
exportFile: renderHost.exportFile,
exportFileBinary: renderHost.exportFileBinary,
paths: {
appPath: renderHost.serverConfig.paths.appPath,
homePath: renderHost.serverConfig.paths.homePath,