1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | interface SpyData {
|
11 | type: number;
|
12 | module?: string | undefined;
|
13 | method: string | number;
|
14 | args: any[];
|
15 | }
|
16 |
|
17 | declare class MessageQueue {
|
18 | static spy(spyOrToggle: boolean | ((data: SpyData) => void)): void;
|
19 |
|
20 | getCallableModule(name: string): Object;
|
21 | registerCallableModule(name: string, module: Object): void;
|
22 | registerLazyCallableModule(name: string, factory: () => Object): void;
|
23 | }
|
24 |
|
25 | declare module 'react-native/Libraries/BatchedBridge/BatchedBridge' {
|
26 | const BatchedBridge: MessageQueue;
|
27 | export default BatchedBridge;
|
28 | }
|
29 |
|
30 | declare module 'react-native/Libraries/BatchedBridge/MessageQueue' {
|
31 | export default MessageQueue;
|
32 | }
|
33 |
|
\ | No newline at end of file |