Expose isConnected and currentUser

Summary: Requested by antonk52 and MSYS team

Reviewed By: passy

Differential Revision: D44662243

fbshipit-source-id: 2bace476c4e79b6a05bfb89ddc3e6acb437c6c3b
This commit is contained in:
Andrey Goncharov
2023-04-04 05:26:31 -07:00
committed by Facebook GitHub Bot
parent f8a1f38c0a
commit 7f111a11de
6 changed files with 55 additions and 7 deletions

View File

@@ -26,8 +26,12 @@ export function baseFlipperLibImplementation(
logger: Logger,
): Omit<
FlipperLib,
'enableMenuEntries' | 'selectPlugin' | 'showNotification' | 'createPaste'
> {
| 'enableMenuEntries'
| 'selectPlugin'
| 'showNotification'
| 'createPaste'
| 'intern'
> & {intern: Omit<FlipperLib['intern'], 'currentUser' | 'isConnected'>} {
return {
isFB: !constants.IS_PUBLIC_BUILD,
logger,