@@ -5604,7 +5604,7 @@ declare namespace WebAssembly {
56045604 } ;
56055605
56065606 interface Instance {
5607- readonly exports : any ;
5607+ readonly exports : Exports ;
56085608 }
56095609
56105610 var Instance : {
@@ -5679,10 +5679,16 @@ declare namespace WebAssembly {
56795679
56805680 type ImportExportKind = "function" | "table" | "memory" | "global" ;
56815681 type TableKind = "anyfunc" ;
5682+ type ValueType = "i32" | "i64" | "f32" | "f64" ;
5683+ type ExportValue = Function | Global | Memory | Table ;
5684+ type Exports = Record < string , ExportValue > ;
5685+ type ImportValue = ExportValue | number ;
5686+ type ModuleImports = Record < string , ImportValue > ;
5687+ type Imports = Record < string , ModuleImports > ;
56825688 function compile ( bytes : BufferSource ) : Promise < Module > ;
56835689 function compileStreaming ( source : Response | Promise < Response > ) : Promise < Module > ;
5684- function instantiate ( bytes : BufferSource , importObject ?: any ) : Promise < WebAssemblyInstantiatedSource > ;
5685- function instantiate ( moduleObject : Module , importObject ?: any ) : Promise < Instance > ;
5690+ function instantiate ( bytes : BufferSource , importObject ?: Imports ) : Promise < WebAssemblyInstantiatedSource > ;
5691+ function instantiate ( moduleObject : Module , importObject ?: Imports ) : Promise < Instance > ;
56865692 function instantiateStreaming ( source : Response | Promise < Response > , importObject ?: any ) : Promise < WebAssemblyInstantiatedSource > ;
56875693 function validate ( bytes : BufferSource ) : boolean ;
56885694}
@@ -5857,7 +5863,6 @@ type RequestRedirect = "follow" | "error" | "manual";
58575863type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect" ;
58585864type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant" ;
58595865type ServiceWorkerUpdateViaCache = "imports" | "all" | "none" ;
5860- type ValueType = "i32" | "i64" | "f32" | "f64" ;
58615866type VisibilityState = "hidden" | "visible" | "prerender" ;
58625867type WebGLPowerPreference = "default" | "low-power" | "high-performance" ;
58635868type WorkerType = "classic" | "module" ;
0 commit comments