2019-08-28 01:54:01 +08:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
|
*
|
|
|
|
|
* @flow
|
|
|
|
|
*/
|
2019-01-23 03:04:37 +08:00
|
|
|
|
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) {
|
2019-07-21 05:08:23 +08:00
|
|
|
shell.connect((bridge: FrontendBridge) => {
|
2019-01-23 03:04:37 +08:00
|
|
|
// TODO ...
|
|
|
|
|
});
|
2019-01-24 00:45:19 +08:00
|
|
|
}
|