@@ -9,7 +9,7 @@ import setupNativeStyleEditor from 'react-devtools-shared/src/backend/NativeStyl
9
9
import type { BackendBridge } from 'react-devtools-shared/src/bridge' ;
10
10
import type { Wall } from 'react-devtools-shared/src/types' ;
11
11
12
- function startActivation ( contentWindow : window , bridge : BackendBridge ) {
12
+ function startActivation ( contentWindow : any , bridge : BackendBridge ) {
13
13
const onSavedPreferences = data => {
14
14
// This is the only message we're listening for,
15
15
// so it's safe to cleanup after we've received it.
@@ -55,7 +55,7 @@ function startActivation(contentWindow: window, bridge: BackendBridge) {
55
55
bridge . send ( 'getSavedPreferences' ) ;
56
56
}
57
57
58
- function finishActivation ( contentWindow : window , bridge : BackendBridge ) {
58
+ function finishActivation ( contentWindow : any , bridge : BackendBridge ) {
59
59
const agent = new Agent ( bridge ) ;
60
60
61
61
const hook = contentWindow . __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
@@ -75,7 +75,7 @@ function finishActivation(contentWindow: window, bridge: BackendBridge) {
75
75
}
76
76
77
77
export function activate (
78
- contentWindow : window ,
78
+ contentWindow : any ,
79
79
{
80
80
bridge,
81
81
} : {
@@ -89,10 +89,7 @@ export function activate(
89
89
startActivation ( contentWindow , bridge ) ;
90
90
}
91
91
92
- export function createBridge (
93
- contentWindow : window ,
94
- wall ?: Wall ,
95
- ) : BackendBridge {
92
+ export function createBridge ( contentWindow : any , wall ?: Wall ) : BackendBridge {
96
93
const { parent} = contentWindow ;
97
94
98
95
if ( wall == null ) {
@@ -115,6 +112,6 @@ export function createBridge(
115
112
return ( new Bridge ( wall ) : BackendBridge ) ;
116
113
}
117
114
118
- export function initialize ( contentWindow : window ) : void {
115
+ export function initialize ( contentWindow : any ) : void {
119
116
installHook ( contentWindow ) ;
120
117
}
0 commit comments