@samitouri / QOS-React-2 / commits / 77b637d612

Add Bridge types for Fusebox (#31274)

New types used by Fusebox https://github.com/facebookexperimental/rn-chrome-devtools-frontend/pull/117

Edmond Chui committed Oct 16, 2024 at 16:45 UTC 77b637d61200eef4dca4cbe4258da358d6337c7b
1 file changed +3 -1
packages/react-devtools-fusebox/src/frontend.d.ts
+3 -1
@@ -15,7 +15,9 @@ export type Wall = {
15 };
16
17 export type Bridge = {
18 - shutdown: () => void,
18 + addListener(event: string, listener: (params: unknown) => any): void;
19 + removeListener(event: string, listener: Function): void;
20 + shutdown: () => void;
21 };
22 export type Store = Object;
23 export type BrowserTheme = 'dark' | 'light';