소스 검색

ts: add metadata field to Idl type (#1422)

Krešimir Klas 3 년 전
부모
커밋
580167a1b0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      ts/src/idl.ts

+ 3 - 0
ts/src/idl.ts

@@ -12,8 +12,11 @@ export type Idl = {
   events?: IdlEvent[];
   errors?: IdlErrorCode[];
   constants?: IdlConstant[];
+  metadata?: IdlMetadata;
 };
 
+export type IdlMetadata = any;
+
 export type IdlConstant = {
   name: string;
   type: IdlType;