Files
flipper/desktop/flipper-ui-browser/src/global.ts
Michel Weststrate ad4a55f263 move node types, stub node modules
Summary: This diff stubs all node modules when running in the browser, so that, albeit with a lot of errors and without plugins, the UI loads in a browser. To be continued in the rest of this diff

Reviewed By: antonk52

Differential Revision: D32665705

fbshipit-source-id: 4632e241f59c5b9712a41d01a26878afb01f69b5
2021-12-08 04:30:57 -08:00

26 lines
536 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import type {RenderHost} from 'flipper-ui-core';
declare global {
interface Window {
flipperConfig: {
theme: 'light' | 'dark' | 'system';
entryPoint: string;
debug: boolean;
};
FlipperRenderHostInstance: RenderHost;
flipperShowError?(error: string): void;
flipperHideError?(): void;
}
}