react/packages/react-devtools-shared/src/devtools/index.js

15 lines
300 B
JavaScript
Raw Normal View History

2019-01-23 03:04:37 +08:00
// @flow
2019-08-14 08:58:03 +08:00
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
2019-01-23 03:04:37 +08:00
type Shell = {|
connect: (callback: Function) => void,
onReload: (reloadFn: Function) => void,
|};
export function initDevTools(shell: Shell) {
shell.connect((bridge: FrontendBridge) => {
2019-01-23 03:04:37 +08:00
// TODO ...
});
2019-01-24 00:45:19 +08:00
}