Skip to content

Commit 9f68e51

Browse files
authored
Add missed PackedType in definitions
1 parent 9b25d4e commit 9f68e51

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

index.d.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
declare module binaryen {
22

33
type Type = number;
4+
type PackedType = number;
45
type HeapType = number;
56

67
const none: Type;
@@ -27,19 +28,21 @@ declare module binaryen {
2728
const unreachable: Type;
2829
const auto: Type;
2930

30-
namespace HeapTypes {
31-
const ext: HeapType;
32-
const func: HeapType;
33-
const any: HeapType;
34-
const eq: HeapType;
35-
const i31: HeapType;
36-
const struct: HeapType;
37-
const array: HeapType;
38-
const string: HeapType;
39-
const none: HeapType;
40-
const noext: HeapType;
41-
const nofunc: HeapType;
42-
}
31+
const notPacked: PackedType;
32+
const i8: PackedType;
33+
const i16: PackedType;
34+
35+
const ext: HeapType;
36+
const func: HeapType;
37+
const any: HeapType;
38+
const eq: HeapType;
39+
const i31: HeapType;
40+
const struct: HeapType;
41+
const array: HeapType;
42+
const string: HeapType;
43+
const none: HeapType;
44+
const noext: HeapType;
45+
const nofunc: HeapType;
4346

4447
function createType(types: Type[]): Type;
4548
function expandType(type: Type): Type[];
@@ -1861,7 +1864,7 @@ declare module binaryen {
18611864

18621865
interface TypeBuilderField {
18631866
type: Type;
1864-
packedType: Type;
1867+
packedType: PackedType;
18651868
mutable: boolean;
18661869
}
18671870

0 commit comments

Comments
 (0)