Skip to content

Commit

Permalink
adding toJSON() method of HttpError to definition file (DefinitelyTyp…
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mincarelli authored and mhegazy committed Aug 14, 2017
1 parent bc55e7a commit 88daab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/restify-errors/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class HttpError extends VError {
body: any;

displayName: string;

toJSON(): any;
}

export class DefinedHttpError extends HttpError {
Expand Down

0 comments on commit 88daab0

Please sign in to comment.