http-errors: Add missing constructor

Allows the following to work:
```typescript
import { HttpError } from "http-errors";

let error: HttpError;
console.log(error instanceof HttpError);
```
This commit is contained in:
use-strict
2017-03-14 15:03:47 +02:00
committed by GitHub
parent e76df9db34
commit d0ed29f8a2

View File

@@ -23,6 +23,8 @@ declare module 'http-errors' {
[code: string]: new (msg?: string) => HttpError;
(...args: Array<Error | string | number | Object>): HttpError;
HttpError: HttpErrorConstructor;
Continue: HttpErrorConstructor;
SwitchingProtocols: HttpErrorConstructor;