ts: Add array to ts IdlType
@@ -83,21 +83,26 @@ export type IdlType =
| "bytes"
| "string"
| "publicKey"
- | IdlTypeVec
+ | IdlTypeDefined
| IdlTypeOption
- | IdlTypeDefined;
+ | IdlTypeVec
+ | IdlTypeArray;
-export type IdlTypeVec = {
- vec: IdlType;
+// User defined type.
+export type IdlTypeDefined = {
+ defined: string;
};
export type IdlTypeOption = {
option: IdlType;
};
-// User defined type.
-export type IdlTypeDefined = {
- defined: string;
+export type IdlTypeVec = {
+ vec: IdlType;
+};
+
+export type IdlTypeArray = {
+ array: [idlType: IdlType, size: number];
};
export type IdlEnumVariant = {
