@@ -5600,7 +5600,7 @@ declare namespace WebAssembly {
56005600
56015601 var Global : {
56025602 prototype : Global ;
5603- new ( descriptor : GlobalDescriptor , value ?: any ) : Global ;
5603+ new ( descriptor : GlobalDescriptor , v ?: any ) : Global ;
56045604 } ;
56055605
56065606 interface Instance {
@@ -5628,9 +5628,9 @@ declare namespace WebAssembly {
56285628 var Module : {
56295629 prototype : Module ;
56305630 new ( bytes : BufferSource ) : Module ;
5631- customSections ( module : Module , sectionName : string ) : ArrayBuffer [ ] ;
5632- exports ( module : Module ) : ModuleExportDescriptor [ ] ;
5633- imports ( module : Module ) : ModuleImportDescriptor [ ] ;
5631+ customSections ( moduleObject : Module , sectionName : string ) : ArrayBuffer [ ] ;
5632+ exports ( moduleObject : Module ) : ModuleExportDescriptor [ ] ;
5633+ imports ( moduleObject : Module ) : ModuleImportDescriptor [ ] ;
56345634 } ;
56355635
56365636 interface Table {
@@ -5647,7 +5647,7 @@ declare namespace WebAssembly {
56475647
56485648 interface GlobalDescriptor {
56495649 mutable ?: boolean ;
5650- value : string ;
5650+ value : ValueType ;
56515651 }
56525652
56535653 interface MemoryDescriptor {
@@ -5680,8 +5680,10 @@ declare namespace WebAssembly {
56805680 type ImportExportKind = "function" | "table" | "memory" | "global" ;
56815681 type TableKind = "anyfunc" ;
56825682 function compile ( bytes : BufferSource ) : Promise < Module > ;
5683+ function compileStreaming ( source : Response | Promise < Response > ) : Promise < Module > ;
56835684 function instantiate ( bytes : BufferSource , importObject ?: any ) : Promise < WebAssemblyInstantiatedSource > ;
56845685 function instantiate ( moduleObject : Module , importObject ?: any ) : Promise < Instance > ;
5686+ function instantiateStreaming ( source : Response | Promise < Response > , importObject ?: any ) : Promise < WebAssemblyInstantiatedSource > ;
56855687 function validate ( bytes : BufferSource ) : boolean ;
56865688}
56875689
@@ -5855,6 +5857,7 @@ type RequestRedirect = "follow" | "error" | "manual";
58555857type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect" ;
58565858type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant" ;
58575859type ServiceWorkerUpdateViaCache = "imports" | "all" | "none" ;
5860+ type ValueType = "i32" | "i64" | "f32" | "f64" ;
58585861type VisibilityState = "hidden" | "visible" | "prerender" ;
58595862type WebGLPowerPreference = "default" | "low-power" | "high-performance" ;
58605863type WorkerType = "classic" | "module" ;
0 commit comments