mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
13 lines
354 B
JavaScript
13 lines
354 B
JavaScript
// @flow
|
|
|
|
export type Bridge = {
|
|
addListener(type: string, callback: Function): void,
|
|
removeListener(type: string, callback: Function): void,
|
|
send(event: string, payload: any, transferable?: Array<any>): void,
|
|
};
|
|
|
|
export type Wall = {|
|
|
listen: (fn: Function) => void,
|
|
send: (event: string, payload: any, transferable?: Array<any>) => void,
|
|
|};
|