@@ -9,7 +9,7 @@ import setupNativeStyleEditor from 'react-devtools-shared/src/backend/NativeStyl
99import type { BackendBridge } from 'react-devtools-shared/src/bridge' ;
1010import type { Wall } from 'react-devtools-shared/src/types' ;
1111
12- function startActivation ( contentWindow : window , bridge : BackendBridge ) {
12+ function startActivation ( contentWindow : any , bridge : BackendBridge ) {
1313 const onSavedPreferences = data => {
1414 // This is the only message we're listening for,
1515 // so it's safe to cleanup after we've received it.
@@ -55,7 +55,7 @@ function startActivation(contentWindow: window, bridge: BackendBridge) {
5555 bridge . send ( 'getSavedPreferences' ) ;
5656}
5757
58- function finishActivation ( contentWindow : window , bridge : BackendBridge ) {
58+ function finishActivation ( contentWindow : any , bridge : BackendBridge ) {
5959 const agent = new Agent ( bridge ) ;
6060
6161 const hook = contentWindow . __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
@@ -75,7 +75,7 @@ function finishActivation(contentWindow: window, bridge: BackendBridge) {
7575}
7676
7777export function activate (
78- contentWindow : window ,
78+ contentWindow : any ,
7979 {
8080 bridge,
8181 } : {
@@ -89,10 +89,7 @@ export function activate(
8989 startActivation ( contentWindow , bridge ) ;
9090}
9191
92- export function createBridge (
93- contentWindow : window ,
94- wall ?: Wall ,
95- ) : BackendBridge {
92+ export function createBridge ( contentWindow : any , wall ?: Wall ) : BackendBridge {
9693 const { parent} = contentWindow ;
9794
9895 if ( wall == null ) {
@@ -115,6 +112,6 @@ export function createBridge(
115112 return ( new Bridge ( wall ) : BackendBridge ) ;
116113}
117114
118- export function initialize ( contentWindow : window ) : void {
115+ export function initialize ( contentWindow : any ) : void {
119116 installHook ( contentWindow ) ;
120117}
0 commit comments