Browse Source

fix(ts/idl): export all IDL types (#1918)

Sohrab 3 years ago
parent
commit
f866d073db
1 changed files with 5 additions and 5 deletions
  1. 5 5
      ts/src/idl.ts

+ 5 - 5
ts/src/idl.ts

@@ -102,9 +102,9 @@ export type IdlTypeDefTyEnum = {
   variants: IdlEnumVariant[];
 };
 
-type IdlTypeDefTy = IdlTypeDefTyEnum | IdlTypeDefTyStruct;
+export type IdlTypeDefTy = IdlTypeDefTyEnum | IdlTypeDefTyStruct;
 
-type IdlTypeDefStruct = Array<IdlField>;
+export type IdlTypeDefStruct = Array<IdlField>;
 
 export type IdlType =
   | "bool"
@@ -155,11 +155,11 @@ export type IdlEnumVariant = {
   fields?: IdlEnumFields;
 };
 
-type IdlEnumFields = IdlEnumFieldsNamed | IdlEnumFieldsTuple;
+export type IdlEnumFields = IdlEnumFieldsNamed | IdlEnumFieldsTuple;
 
-type IdlEnumFieldsNamed = IdlField[];
+export type IdlEnumFieldsNamed = IdlField[];
 
-type IdlEnumFieldsTuple = IdlType[];
+export type IdlEnumFieldsTuple = IdlType[];
 
 export type IdlErrorCode = {
   code: number;