ts: Add array to ts IdlType (#697)

This commit is contained in:
Pierre 2021-09-09 02:04:12 +10:00 committed by GitHub
parent cfc43da8ad
commit 4451779036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 7 deletions

View File

@ -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 = {