فهرست منبع

fix type guard

Shun Miyazawa 3 سال پیش
والد
کامیت
7fdc043f80
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/interfaces/errors/v3-error.ts

+ 1 - 1
packages/app/src/interfaces/errors/v3-error.ts

@@ -4,5 +4,5 @@ export type IErrorV3 = ErrorV3
 
 // type guard
 export const isErrorV3 = (args: any): args is IErrorV3 => {
-  return args.message != null && args.code != null;
+  return args.message != null;
 };