Skip to content

Commit 90afbbd

Browse files
authored
fix index types for struct
1 parent 544717f commit 90afbbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,8 @@ declare module binaryen {
17391739
struct: {
17401740
new(operands: Type[], type: Type): ExpressionRef;
17411741
new_default(type: Type): ExpressionRef;
1742-
get(index: ExpressionRef, ref: ExpressionRef, type: Type, signed: boolean): ExpressionRef;
1743-
set(index: ExpressionRef, ref: ExpressionRef, value: ExpressionRef): ExpressionRef;
1742+
get(index: number, ref: ExpressionRef, type: Type, signed: boolean): ExpressionRef;
1743+
set(index: number, ref: ExpressionRef, value: ExpressionRef): ExpressionRef;
17441744
};
17451745
array: {
17461746
new(type: Type, size: ExpressionRef, init: ExpressionRef): ExpressionRef;

0 commit comments

Comments
 (0)