@@ -14,13 +14,19 @@ if (typeof Bun !== "undefined" && (await Bun.file(wasmOnDisk).exists())) {
1414 const variant = {
1515 type : "sync" as const ,
1616 importFFI : ( ) =>
17- import ( "@jitl/quickjs-wasmfile-release-sync/ffi" ) . then ( ( m : any ) => m . QuickJSFFI ) ,
17+ import ( "@jitl/quickjs-wasmfile-release-sync/ffi" ) . then (
18+ ( m : Record < string , unknown > ) => m . QuickJSFFI ,
19+ ) ,
1820 importModuleLoader : ( ) =>
19- import ( "@jitl/quickjs-wasmfile-release-sync/emscripten-module" ) . then ( ( m : any ) => {
20- const original = m . default ;
21- return ( moduleArg : any = { } ) => original ( { ...moduleArg , wasmBinary } ) ;
22- } ) ,
21+ import ( "@jitl/quickjs-wasmfile-release-sync/emscripten-module" ) . then (
22+ ( m : Record < string , unknown > ) => {
23+ const original = m . default as ( ...args : unknown [ ] ) => unknown ;
24+ return ( moduleArg : Record < string , unknown > = { } ) =>
25+ original ( { ...moduleArg , wasmBinary } ) ;
26+ } ,
27+ ) ,
2328 } ;
29+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- quickjs-emscripten variant type is not publicly exported
2430 const mod = await newQuickJSWASMModule ( variant as any ) ;
2531 setQuickJSModule ( mod ) ;
2632}
@@ -200,7 +206,7 @@ const callCommand = Command.make(
200206 }
201207 } else {
202208 console . log ( result . text ) ;
203- const executionId = ( result . structured as any ) ?. executionId ;
209+ const executionId = ( result . structured as Record < string , unknown > | undefined ) ?. executionId ;
204210 if ( executionId ) {
205211 console . log (
206212 `\nTo resume:\n ${ cliPrefix } resume --execution-id ${ executionId } --action accept` ,
0 commit comments