ts: Add array to ts IdlType (#697)
This commit is contained in:
parent
cfc43da8ad
commit
4451779036
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue