Skip to content

Commit a2d6aeb

Browse files
author
Orta
authored
Merge pull request #756 from RReverser/improve-wasm-imports-exports
Improve WebAssembly.instantiateStreaming
2 parents 4d0dbad + 8a9963b commit a2d6aeb

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19144,7 +19144,7 @@ declare namespace WebAssembly {
1914419144
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
1914519145
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
1914619146
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
19147-
function instantiateStreaming(source: Response | Promise<Response>, importObject?: any): Promise<WebAssemblyInstantiatedSource>;
19147+
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
1914819148
function validate(bytes: BufferSource): boolean;
1914919149
}
1915019150

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5689,7 +5689,7 @@ declare namespace WebAssembly {
56895689
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
56905690
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
56915691
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
5692-
function instantiateStreaming(source: Response | Promise<Response>, importObject?: any): Promise<WebAssemblyInstantiatedSource>;
5692+
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
56935693
function validate(bytes: BufferSource): boolean;
56945694
}
56955695

inputfiles/overridingTypes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,6 +3218,16 @@
32183218
"type": "Imports"
32193219
}
32203220
]
3221+
},
3222+
"instantiateStreaming": {
3223+
"override-signatures": [
3224+
"instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>"
3225+
],
3226+
"force-references": [
3227+
{
3228+
"type": "Imports"
3229+
}
3230+
]
32213231
}
32223232
}
32233233
}

0 commit comments

Comments
 (0)