Skip to content

Commit

Permalink
INewCustomError now extends ErrorConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
b2b-florent-quillien committed Nov 30, 2018
1 parent 45506d7 commit 4a99177
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface INewCustomError<T> {
interface INewCustomError<T> extends ErrorConstructor {
new (...args: any[]): T;
}
export interface ICustomError extends Error {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@b2b-alive/ts-error-generator",
"version": "1.0.1",
"version": "1.1.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util';


interface INewCustomError<T> {
interface INewCustomError<T> extends ErrorConstructor{
new(...args: any[]): T
}

Expand Down

0 comments on commit 4a99177

Please sign in to comment.