@types/statuses
Advanced tools
Comparing version 1.5.0 to 2.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for statuses 1.5 | ||
// Type definitions for statuses 2.0 | ||
// Project: https://github.com/jshttp/statuses | ||
@@ -9,20 +9,13 @@ // Definitions by: Tanguy Krotoff <https://github.com/tkrotoff> | ||
declare const status: Status & CodesToMessages & MessagesToCodes; | ||
declare const status: Status; | ||
interface Status { | ||
STATUS_CODES: { [code: number]: string }; | ||
(code_msg: number | string): number | string; | ||
codes: number[]; | ||
code: { [msg: string]: number | undefined }; | ||
empty: { [code: number]: boolean | undefined }; | ||
message: { [code: number]: string | undefined }; | ||
redirect: { [code: number]: boolean | undefined }; | ||
empty: { [code: number]: boolean | undefined }; | ||
retry: { [code: number]: boolean | undefined }; | ||
(code: number | string): number; | ||
} | ||
interface CodesToMessages { | ||
[code: number]: string | undefined; | ||
} | ||
interface MessagesToCodes { | ||
[msg: string]: number | undefined; | ||
} |
{ | ||
"name": "@types/statuses", | ||
"version": "1.5.0", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for statuses", | ||
@@ -19,11 +19,12 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/statuses" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "3b89858826996ca9813ccf2450044f82bf290ff0cb3645c5c8020b7ffb33290b", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "882d17a6aaf5eb0415fb5dc845595485c11e9f1714f54dc2a71f8482456b07d7", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses. | ||
Additional Details | ||
* Last updated: Tue, 25 Dec 2018 05:06:15 GMT | ||
### Additional Details | ||
* Last updated: Wed, 24 Jun 2020 06:29:45 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Tanguy Krotoff <https://github.com/tkrotoff>, BendingBender <https://github.com/BendingBender>. | ||
These definitions were written by [Tanguy Krotoff](https://github.com/tkrotoff), and [BendingBender](https://github.com/BendingBender). |
Sorry, the diff of this file is not supported yet
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
3231
16