ExtError doesn't require any arguments

This commit is contained in:
Jaco Greeff
2018-06-24 14:41:16 +02:00
parent 0a572e6771
commit ae814c646d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -17,6 +17,6 @@
},
"devDependencies": {
"@polkadot/dev": "^0.20.2",
"@polkadot/ts": "^0.0.20"
"@polkadot/ts": "^0.0.24"
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ export default class ExtError extends Error implements ExtErrorInterface {
// @ts-ignore we are assigning it via extend
stack: string;
constructor (message: string = '', code: number = UNKNOWN, data: any) {
constructor (message: string = '', code: number = UNKNOWN, data?: any) {
super();
extend(this, 'message', String(message));
+3 -3
View File
@@ -741,9 +741,9 @@
rimraf "^2.6.2"
typescript "^2.9.2"
"@polkadot/ts@^0.0.20":
version "0.0.20"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.0.20.tgz#a1d413e5e743a6f64acb2a8525beabc4090bb06d"
"@polkadot/ts@^0.0.24":
version "0.0.24"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.0.24.tgz#e771cfec096759d5b8522a9b474b0eefb95bfc45"
"@types/base-x@*":
version "1.0.29"