1- import type { ReactPyClientInterface } from "./types" ;
21import eventToObject from "event-to-object" ;
32import type {
43 ReactPyVdom ,
@@ -11,10 +10,11 @@ import type {
1110} from "./types" ;
1211import { infer_bind_from_environment } from "./bind" ;
1312import log from "./logger" ;
13+ import type { ReactPyClient } from "./client" ;
1414
1515export async function loadImportSource (
1616 vdomImportSource : ReactPyVdomImportSource ,
17- client : ReactPyClientInterface ,
17+ client : ReactPyClient ,
1818) : Promise < BindImportSource > {
1919 let module : ReactPyModule ;
2020 if ( vdomImportSource . sourceType === "URL" ) {
@@ -61,7 +61,7 @@ export async function loadImportSource(
6161}
6262
6363function createImportSourceElement ( props : {
64- client : ReactPyClientInterface ;
64+ client : ReactPyClient ;
6565 module : ReactPyModule ;
6666 binding : ReactPyModuleBinding ;
6767 model : ReactPyVdom ;
@@ -180,7 +180,7 @@ export function createChildren<Child>(
180180
181181export function createAttributes (
182182 model : ReactPyVdom ,
183- client : ReactPyClientInterface ,
183+ client : ReactPyClient ,
184184) : { [ key : string ] : any } {
185185 return Object . fromEntries (
186186 Object . entries ( {
@@ -203,7 +203,7 @@ export function createAttributes(
203203}
204204
205205function createEventHandler (
206- client : ReactPyClientInterface ,
206+ client : ReactPyClient ,
207207 name : string ,
208208 { target, preventDefault, stopPropagation } : ReactPyVdomEventHandler ,
209209) : [ string , ( ) => void ] {
@@ -262,7 +262,7 @@ function createInlineJavaScript(
262262class ReactPyChild extends HTMLElement {
263263 mountPoint : HTMLDivElement ;
264264 binding : ImportSourceBinding | null = null ;
265- _client : ReactPyClientInterface | null = null ;
265+ _client : ReactPyClient | null = null ;
266266 _model : ReactPyVdom | null = null ;
267267 currentImportSource : ReactPyVdomImportSource | null = null ;
268268
@@ -276,7 +276,7 @@ class ReactPyChild extends HTMLElement {
276276 this . appendChild ( this . mountPoint ) ;
277277 }
278278
279- set client ( value : ReactPyClientInterface ) {
279+ set client ( value : ReactPyClient ) {
280280 this . _client = value ;
281281 }
282282
0 commit comments