Skip to content

Commit 75d10b4

Browse files
author
roman.vasilev
committed
fix: Fixed invalid rest param
1 parent 60c5e82 commit 75d10b4

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"type": "git",
3737
"url": "https://github.com/unlight/errorlings.git"
3838
},
39-
"dependencies": {},
39+
"dependencies": {
40+
"tslib": "^1.9.3"
41+
},
4042
"devDependencies": {
4143
"@angular/compiler": "^7.2.0",
4244
"@angular/compiler-cli": "^7.2.0",

src/exception-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CustomError } from './custom-error';
33
export class ExceptionError extends CustomError {
44

55
constructor(...args: any[]);
6-
constructor(...args: []) {
6+
constructor(...args: any[]) {
77
super(...args);
88
}
99
}

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export { CustomError } from './custom-error';
2+
export { ExceptionError } from './exception-error';
23
export { NotFoundError } from './notfound-error';
4+
export { ForbiddenError } from './forbidden-error';
35
export { ValidationError } from './validation-error';

src/validation-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class ValidationError extends CustomError {
44

55
constructor(options: CustomErrorOptions);
66
constructor(...args: any[]);
7-
constructor(...args: []) {
7+
constructor(...args: any[]) {
88
super(400, ...args);
99
}
1010
}

0 commit comments

Comments
 (0)