main
js 21 lines 492 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
11
12 type Shell = {
13 connect: (callback: Function) => void,
14 onReload: (reloadFn: Function) => void,
15 };
16
17 export function initDevTools(shell: Shell) {
18 shell.connect((bridge: FrontendBridge) => {
19 // TODO ...
20 });
21 }