File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed
Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 11declare 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
You can’t perform that action at this time.
0 commit comments