浏览代码

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;