Align common definitions

This commit is contained in:
Jaco Greeff
2019-07-14 13:46:09 +02:00
parent def42e415e
commit b4e369c166
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -34,8 +34,7 @@ export default class ExtError extends Error implements ExtErrorInterface {
// @ts-ignore we are assigning it via extend
public code: number;
// @ts-ignore we are assigning it via extend
public data: number | string | undefined;
public data?: number | string;
// @ts-ignore we are assigning it via extend
public message: string;
+1 -1
View File
@@ -6,7 +6,7 @@ import BN from 'bn.js';
export interface ExtErrorInterface {
code: number;
data: string | number;
data?: string | number;
message: string;
stack: string;
}