@types/http-errors
Advanced tools
Comparing version 1.5.30 to 1.5.31
@@ -6,87 +6,88 @@ // Type definitions for http-errors v1.5.0 | ||
declare module 'http-errors' { | ||
namespace createHttpError { | ||
declare namespace createHttpError { | ||
// See https://github.com/jshttp/http-errors/blob/1.3.1/index.js#L42 | ||
interface HttpError extends Error { | ||
status: number; | ||
statusCode: number; | ||
expose: boolean; | ||
} | ||
// See https://github.com/jshttp/http-errors/blob/1.3.1/index.js#L42 | ||
interface HttpError extends Error { | ||
status: number; | ||
statusCode: number; | ||
expose: boolean; | ||
} | ||
type HttpErrorConstructor = new(msg?: string) => HttpError; | ||
type HttpErrorConstructor = new(msg?: string) => HttpError; | ||
interface CreateHttpError { | ||
// See https://github.com/Microsoft/TypeScript/issues/227#issuecomment-50092674 | ||
[code: string]: new () => HttpError; | ||
interface CreateHttpError { | ||
// See https://github.com/Microsoft/TypeScript/issues/227#issuecomment-50092674 | ||
[code: string]: new () => HttpError; | ||
(...args: Array<Error | string | number | Object>): HttpError; | ||
(...args: Array<Error | string | number | Object>): HttpError; | ||
Continue: HttpErrorConstructor; | ||
SwitchingProtocols: HttpErrorConstructor; | ||
Processing: HttpErrorConstructor; | ||
OK: HttpErrorConstructor; | ||
Created: HttpErrorConstructor; | ||
Accepted: HttpErrorConstructor; | ||
NonAuthoritativeInformation: HttpErrorConstructor; | ||
NoContent: HttpErrorConstructor; | ||
ResetContent: HttpErrorConstructor; | ||
PartialContent: HttpErrorConstructor; | ||
MultiStatus: HttpErrorConstructor; | ||
AlreadyReported: HttpErrorConstructor; | ||
IMUsed: HttpErrorConstructor; | ||
MultipleChoices: HttpErrorConstructor; | ||
MovedPermanently: HttpErrorConstructor; | ||
Found: HttpErrorConstructor; | ||
SeeOther: HttpErrorConstructor; | ||
NotModified: HttpErrorConstructor; | ||
UseProxy: HttpErrorConstructor; | ||
Unused: HttpErrorConstructor; | ||
TemporaryRedirect: HttpErrorConstructor; | ||
PermanentRedirect: HttpErrorConstructor; | ||
BadRequest: HttpErrorConstructor; | ||
Unauthorized: HttpErrorConstructor; | ||
PaymentRequired: HttpErrorConstructor; | ||
Forbidden: HttpErrorConstructor; | ||
NotFound: HttpErrorConstructor; | ||
MethodNotAllowed: HttpErrorConstructor; | ||
NotAcceptable: HttpErrorConstructor; | ||
ProxyAuthenticationRequired: HttpErrorConstructor; | ||
RequestTimeout: HttpErrorConstructor; | ||
Conflict: HttpErrorConstructor; | ||
Gone: HttpErrorConstructor; | ||
LengthRequired: HttpErrorConstructor; | ||
PreconditionFailed: HttpErrorConstructor; | ||
PayloadTooLarge: HttpErrorConstructor; | ||
URITooLong: HttpErrorConstructor; | ||
UnsupportedMediaType: HttpErrorConstructor; | ||
RangeNotSatisfiable: HttpErrorConstructor; | ||
ExpectationFailed: HttpErrorConstructor; | ||
ImATeapot: HttpErrorConstructor; | ||
MisdirectedRequest: HttpErrorConstructor; | ||
UnprocessableEntity: HttpErrorConstructor; | ||
Locked: HttpErrorConstructor; | ||
FailedDependency: HttpErrorConstructor; | ||
UnorderedCollection: HttpErrorConstructor; | ||
UpgradeRequired: HttpErrorConstructor; | ||
PreconditionRequired: HttpErrorConstructor; | ||
TooManyRequests: HttpErrorConstructor; | ||
RequestHeaderFieldsTooLarge: HttpErrorConstructor; | ||
UnavailableForLegalReasons: HttpErrorConstructor; | ||
InternalServerError: HttpErrorConstructor; | ||
NotImplemented: HttpErrorConstructor; | ||
BadGateway: HttpErrorConstructor; | ||
ServiceUnavailable: HttpErrorConstructor; | ||
GatewayTimeout: HttpErrorConstructor; | ||
HTTPVersionNotSupported: HttpErrorConstructor; | ||
VariantAlsoNegotiates: HttpErrorConstructor; | ||
InsufficientStorage: HttpErrorConstructor; | ||
LoopDetected: HttpErrorConstructor; | ||
BandwidthLimitExceeded: HttpErrorConstructor; | ||
NotExtended: HttpErrorConstructor; | ||
NetworkAuthenticationRequired: HttpErrorConstructor; | ||
Continue: HttpErrorConstructor; | ||
SwitchingProtocols: HttpErrorConstructor; | ||
Processing: HttpErrorConstructor; | ||
OK: HttpErrorConstructor; | ||
Created: HttpErrorConstructor; | ||
Accepted: HttpErrorConstructor; | ||
NonAuthoritativeInformation: HttpErrorConstructor; | ||
NoContent: HttpErrorConstructor; | ||
ResetContent: HttpErrorConstructor; | ||
PartialContent: HttpErrorConstructor; | ||
MultiStatus: HttpErrorConstructor; | ||
AlreadyReported: HttpErrorConstructor; | ||
IMUsed: HttpErrorConstructor; | ||
MultipleChoices: HttpErrorConstructor; | ||
MovedPermanently: HttpErrorConstructor; | ||
Found: HttpErrorConstructor; | ||
SeeOther: HttpErrorConstructor; | ||
NotModified: HttpErrorConstructor; | ||
UseProxy: HttpErrorConstructor; | ||
Unused: HttpErrorConstructor; | ||
TemporaryRedirect: HttpErrorConstructor; | ||
PermanentRedirect: HttpErrorConstructor; | ||
BadRequest: HttpErrorConstructor; | ||
Unauthorized: HttpErrorConstructor; | ||
PaymentRequired: HttpErrorConstructor; | ||
Forbidden: HttpErrorConstructor; | ||
NotFound: HttpErrorConstructor; | ||
MethodNotAllowed: HttpErrorConstructor; | ||
NotAcceptable: HttpErrorConstructor; | ||
ProxyAuthenticationRequired: HttpErrorConstructor; | ||
RequestTimeout: HttpErrorConstructor; | ||
Conflict: HttpErrorConstructor; | ||
Gone: HttpErrorConstructor; | ||
LengthRequired: HttpErrorConstructor; | ||
PreconditionFailed: HttpErrorConstructor; | ||
PayloadTooLarge: HttpErrorConstructor; | ||
URITooLong: HttpErrorConstructor; | ||
UnsupportedMediaType: HttpErrorConstructor; | ||
RangeNotSatisfiable: HttpErrorConstructor; | ||
ExpectationFailed: HttpErrorConstructor; | ||
ImATeapot: HttpErrorConstructor; | ||
MisdirectedRequest: HttpErrorConstructor; | ||
UnprocessableEntity: HttpErrorConstructor; | ||
Locked: HttpErrorConstructor; | ||
FailedDependency: HttpErrorConstructor; | ||
UnorderedCollection: HttpErrorConstructor; | ||
UpgradeRequired: HttpErrorConstructor; | ||
PreconditionRequired: HttpErrorConstructor; | ||
TooManyRequests: HttpErrorConstructor; | ||
RequestHeaderFieldsTooLarge: HttpErrorConstructor; | ||
UnavailableForLegalReasons: HttpErrorConstructor; | ||
InternalServerError: HttpErrorConstructor; | ||
NotImplemented: HttpErrorConstructor; | ||
BadGateway: HttpErrorConstructor; | ||
ServiceUnavailable: HttpErrorConstructor; | ||
GatewayTimeout: HttpErrorConstructor; | ||
HTTPVersionNotSupported: HttpErrorConstructor; | ||
VariantAlsoNegotiates: HttpErrorConstructor; | ||
InsufficientStorage: HttpErrorConstructor; | ||
LoopDetected: HttpErrorConstructor; | ||
BandwidthLimitExceeded: HttpErrorConstructor; | ||
NotExtended: HttpErrorConstructor; | ||
NetworkAuthenticationRequired: HttpErrorConstructor; | ||
} | ||
} | ||
var createHttpError: createHttpError.CreateHttpError; | ||
export = createHttpError; | ||
} | ||
declare var createHttpError: createHttpError.CreateHttpError; | ||
export = createHttpError; |
{ | ||
"name": "@types/http-errors", | ||
"version": "1.5.30", | ||
"version": "1.5.31", | ||
"description": "TypeScript definitions for http-errors v1.5.0", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "3e3e3b9e4d14d4e68f989d466ce8729a6a495e39d86fa03a1b1cd267ab1969fd" | ||
"typesPublisherContentHash": "1e13fb6297235645a2fb2d5fab4660db60f67f20ba057fa0325eeaff41212040" | ||
} |
@@ -11,9 +11,9 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 26 Oct 2016 19:23:27 GMT | ||
* File structure: ProperModule | ||
* Last updated: Tue, 22 Nov 2016 20:59:26 GMT | ||
* File structure: DeclareModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: createHttpError | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Tanguy Krotoff <https://github.com/tkrotoff>. |
@@ -6,4 +6,4 @@ { | ||
"moduleDependencies": [], | ||
"libraryMajorVersion": "1", | ||
"libraryMinorVersion": "5", | ||
"libraryMajorVersion": 1, | ||
"libraryMinorVersion": 5, | ||
"libraryName": "http-errors v1.5.0", | ||
@@ -14,6 +14,4 @@ "typingsPackageName": "http-errors", | ||
"sourceBranch": "types-2.0", | ||
"kind": "ProperModule", | ||
"globals": [ | ||
"createHttpError" | ||
], | ||
"kind": "DeclareModule", | ||
"globals": [], | ||
"declaredModules": [ | ||
@@ -26,3 +24,3 @@ "http-errors" | ||
"hasPackageJson": false, | ||
"contentHash": "3e3e3b9e4d14d4e68f989d466ce8729a6a495e39d86fa03a1b1cd267ab1969fd" | ||
"contentHash": "1e13fb6297235645a2fb2d5fab4660db60f67f20ba057fa0325eeaff41212040" | ||
} |
6078