Decapitate React DevTools
Summary: Changelog: Migrate from react-devtools-core to -react-devtools-inline Technical design doc: https://docs.google.com/document/d/1STUSUhXzrW_KkvqSu7Ge-rxjVFF7oU3_NbwzimkO_Z4 At this point, React DevTools doe snot support globally installed DevTools. Only the bundled version. The support for the globally installed DevTools comes in the subsequent diffs along with on-the-fly transpilation. Reviewed By: mweststrate Differential Revision: D34926472 fbshipit-source-id: fde1d4cf386adfbf8a8581ee5a54e950d2cb34ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1f83b4b414
commit
68aec1df60
19
desktop/plugins/public/reactdevtools/contract.tsx
Normal file
19
desktop/plugins/public/reactdevtools/contract.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
export type Events = {
|
||||
message: any;
|
||||
connected: never;
|
||||
disconnected: never;
|
||||
};
|
||||
|
||||
export type Methods = {
|
||||
message: (data: any) => Promise<void>;
|
||||
globalDevTools: () => Promise<string | undefined>;
|
||||
};
|
||||
Reference in New Issue
Block a user