Skip to content

Commit ee43181

Browse files
author
Orta
authored
Merge pull request #767 from RReverser/improve-wasm
Improve WebAssembly.Instance constructor
2 parents 85ea749 + 49f5ba1 commit ee43181

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
@@ -19083,7 +19083,7 @@ declare namespace WebAssembly {
1908319083

1908419084
var Instance: {
1908519085
prototype: Instance;
19086-
new(module: Module, importObject?: any): Instance;
19086+
new(module: Module, importObject?: Imports): Instance;
1908719087
};
1908819088

1908919089
interface LinkError {

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5609,7 +5609,7 @@ declare namespace WebAssembly {
56095609

56105610
var Instance: {
56115611
prototype: Instance;
5612-
new(module: Module, importObject?: any): Instance;
5612+
new(module: Module, importObject?: Imports): Instance;
56135613
};
56145614

56155615
interface Memory {

inputfiles/overridingTypes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,16 @@
27542754
}
27552755
},
27562756
"Instance": {
2757+
"constructor": {
2758+
"override-signatures": [
2759+
"new(module: Module, importObject?: Imports): Instance"
2760+
],
2761+
"force-references": [
2762+
{
2763+
"type": "Imports"
2764+
}
2765+
]
2766+
},
27572767
"properties": {
27582768
"property": {
27592769
"exports": {

0 commit comments

Comments
 (0)