Skip to content

Commit 77b637d

Browse files
authored
Add Bridge types for Fusebox (#31274)
New types used by Fusebox facebook/react-native-devtools-frontend#117
1 parent be94b10 commit 77b637d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-devtools-fusebox/src/frontend.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export type Wall = {
1515
};
1616

1717
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;
1921
};
2022
export type Store = Object;
2123
export type BrowserTheme = 'dark' | 'light';

0 commit comments

Comments
 (0)