瀏覽代碼

ts: Expose ProgramError (#737)

tomland123 4 年之前
父節點
當前提交
a1f4fac09d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ts/src/index.ts

+ 3 - 0
ts/src/index.ts

@@ -12,6 +12,8 @@ import Coder, {
   TypesCoder,
   AccountsCoder,
 } from "./coder";
+
+import { ProgramError } from "./error";
 import { Instruction } from "./coder/instruction";
 import { Idl } from "./idl";
 import workspace from "./workspace";
@@ -71,4 +73,5 @@ export {
   Wallet,
   Address,
   EventParser,
+  ProgramError,
 };