@types/http-errors
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,3 +10,3 @@ // Type definitions for http-errors 2.0 | ||
declare const createHttpError: createHttpError.CreateHttpError & createHttpError.NamedConstructors & { | ||
isHttpError: createHttpError.IsHttpError | ||
isHttpError: createHttpError.IsHttpError; | ||
}; | ||
@@ -29,3 +29,3 @@ | ||
(msg?: string): HttpError<N>; | ||
new (msg?: string): HttpError<N>; | ||
new(msg?: string): HttpError<N>; | ||
} | ||
@@ -40,47 +40,47 @@ | ||
type NamedConstructors = { | ||
HttpError: HttpErrorConstructor; | ||
} | ||
& Record<'BadRequest' | '400', HttpErrorConstructor<400>> | ||
& Record<'Unauthorized' | '401', HttpErrorConstructor<401>> | ||
& Record<'PaymentRequired' | '402', HttpErrorConstructor<402>> | ||
& Record<'Forbidden' | '403', HttpErrorConstructor<403>> | ||
& Record<'NotFound' | '404', HttpErrorConstructor<404>> | ||
& Record<'MethodNotAllowed' | '405', HttpErrorConstructor<405>> | ||
& Record<'NotAcceptable' | '406', HttpErrorConstructor<406>> | ||
& Record<'ProxyAuthenticationRequired' | '407', HttpErrorConstructor<407>> | ||
& Record<'RequestTimeout' | '408', HttpErrorConstructor<408>> | ||
& Record<'Conflict' | '409', HttpErrorConstructor<409>> | ||
& Record<'Gone' | '410', HttpErrorConstructor<410>> | ||
& Record<'LengthRequired' | '411', HttpErrorConstructor<411>> | ||
& Record<'PreconditionFailed' | '412', HttpErrorConstructor<412>> | ||
& Record<'PayloadTooLarge' | '413', HttpErrorConstructor<413>> | ||
& Record<'URITooLong' | '414', HttpErrorConstructor<414>> | ||
& Record<'UnsupportedMediaType' | '415', HttpErrorConstructor<415>> | ||
& Record<'RangeNotSatisfiable' | '416', HttpErrorConstructor<416>> | ||
& Record<'ExpectationFailed' | '417', HttpErrorConstructor<417>> | ||
& Record<'ImATeapot' | '418', HttpErrorConstructor<418>> | ||
& Record<'MisdirectedRequest' | '421', HttpErrorConstructor<421>> | ||
& Record<'UnprocessableEntity' | '422', HttpErrorConstructor<422>> | ||
& Record<'Locked' | '423', HttpErrorConstructor<423>> | ||
& Record<'FailedDependency' | '424', HttpErrorConstructor<424>> | ||
& Record<'TooEarly' | '425', HttpErrorConstructor<425>> | ||
& Record<'UpgradeRequired' | '426', HttpErrorConstructor<426>> | ||
& Record<'PreconditionRequired' | '428', HttpErrorConstructor<428>> | ||
& Record<'TooManyRequests' | '429', HttpErrorConstructor<429>> | ||
& Record<'RequestHeaderFieldsTooLarge' | '431', HttpErrorConstructor<431>> | ||
& Record<'UnavailableForLegalReasons' | '451', HttpErrorConstructor<451>> | ||
& Record<'InternalServerError' | '500', HttpErrorConstructor<500>> | ||
& Record<'NotImplemented' | '501', HttpErrorConstructor<501>> | ||
& Record<'BadGateway' | '502', HttpErrorConstructor<502>> | ||
& Record<'ServiceUnavailable' | '503', HttpErrorConstructor<503>> | ||
& Record<'GatewayTimeout' | '504', HttpErrorConstructor<504>> | ||
& Record<'HTTPVersionNotSupported' | '505', HttpErrorConstructor<505>> | ||
& Record<'VariantAlsoNegotiates' | '506', HttpErrorConstructor<506>> | ||
& Record<'InsufficientStorage' | '507', HttpErrorConstructor<507>> | ||
& Record<'LoopDetected' | '508', HttpErrorConstructor<508>> | ||
& Record<'BandwidthLimitExceeded' | '509', HttpErrorConstructor<509>> | ||
& Record<'NotExtended' | '510', HttpErrorConstructor<510>> | ||
& Record<'NetworkAuthenticationRequire' | '511', HttpErrorConstructor<511>> | ||
; | ||
type NamedConstructors = | ||
& { | ||
HttpError: HttpErrorConstructor; | ||
} | ||
& Record<"BadRequest" | "400", HttpErrorConstructor<400>> | ||
& Record<"Unauthorized" | "401", HttpErrorConstructor<401>> | ||
& Record<"PaymentRequired" | "402", HttpErrorConstructor<402>> | ||
& Record<"Forbidden" | "403", HttpErrorConstructor<403>> | ||
& Record<"NotFound" | "404", HttpErrorConstructor<404>> | ||
& Record<"MethodNotAllowed" | "405", HttpErrorConstructor<405>> | ||
& Record<"NotAcceptable" | "406", HttpErrorConstructor<406>> | ||
& Record<"ProxyAuthenticationRequired" | "407", HttpErrorConstructor<407>> | ||
& Record<"RequestTimeout" | "408", HttpErrorConstructor<408>> | ||
& Record<"Conflict" | "409", HttpErrorConstructor<409>> | ||
& Record<"Gone" | "410", HttpErrorConstructor<410>> | ||
& Record<"LengthRequired" | "411", HttpErrorConstructor<411>> | ||
& Record<"PreconditionFailed" | "412", HttpErrorConstructor<412>> | ||
& Record<"PayloadTooLarge" | "413", HttpErrorConstructor<413>> | ||
& Record<"URITooLong" | "414", HttpErrorConstructor<414>> | ||
& Record<"UnsupportedMediaType" | "415", HttpErrorConstructor<415>> | ||
& Record<"RangeNotSatisfiable" | "416", HttpErrorConstructor<416>> | ||
& Record<"ExpectationFailed" | "417", HttpErrorConstructor<417>> | ||
& Record<"ImATeapot" | "418", HttpErrorConstructor<418>> | ||
& Record<"MisdirectedRequest" | "421", HttpErrorConstructor<421>> | ||
& Record<"UnprocessableEntity" | "422", HttpErrorConstructor<422>> | ||
& Record<"Locked" | "423", HttpErrorConstructor<423>> | ||
& Record<"FailedDependency" | "424", HttpErrorConstructor<424>> | ||
& Record<"TooEarly" | "425", HttpErrorConstructor<425>> | ||
& Record<"UpgradeRequired" | "426", HttpErrorConstructor<426>> | ||
& Record<"PreconditionRequired" | "428", HttpErrorConstructor<428>> | ||
& Record<"TooManyRequests" | "429", HttpErrorConstructor<429>> | ||
& Record<"RequestHeaderFieldsTooLarge" | "431", HttpErrorConstructor<431>> | ||
& Record<"UnavailableForLegalReasons" | "451", HttpErrorConstructor<451>> | ||
& Record<"InternalServerError" | "500", HttpErrorConstructor<500>> | ||
& Record<"NotImplemented" | "501", HttpErrorConstructor<501>> | ||
& Record<"BadGateway" | "502", HttpErrorConstructor<502>> | ||
& Record<"ServiceUnavailable" | "503", HttpErrorConstructor<503>> | ||
& Record<"GatewayTimeout" | "504", HttpErrorConstructor<504>> | ||
& Record<"HTTPVersionNotSupported" | "505", HttpErrorConstructor<505>> | ||
& Record<"VariantAlsoNegotiates" | "506", HttpErrorConstructor<506>> | ||
& Record<"InsufficientStorage" | "507", HttpErrorConstructor<507>> | ||
& Record<"LoopDetected" | "508", HttpErrorConstructor<508>> | ||
& Record<"BandwidthLimitExceeded" | "509", HttpErrorConstructor<509>> | ||
& Record<"NotExtended" | "510", HttpErrorConstructor<510>> | ||
& Record<"NetworkAuthenticationRequire" | "511", HttpErrorConstructor<511>>; | ||
} |
{ | ||
"name": "@types/http-errors", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for http-errors", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-errors", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "1dfc69d7710a0e2de926b0320f119575b2626e7d4b615157ad092d057e039373", | ||
"typeScriptVersion": "4.1" | ||
"typesPublisherContentHash": "27b9b10313e931475831cb9345e8556d2255a79e8f74c65d03d53196e734e182", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 01 Nov 2022 00:02:46 GMT | ||
* Last updated: Sat, 16 Sep 2023 08:06:32 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6901