@types/statuses
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -1,7 +0,1 @@ | ||
// Type definitions for statuses 1.5 | ||
// Project: https://github.com/jshttp/statuses | ||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff> | ||
// BendingBender <https://github.com/BendingBender> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export = status; | ||
@@ -8,0 +2,0 @@ |
{ | ||
"name": "@types/statuses", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "TypeScript definitions for statuses", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses", | ||
"license": "MIT", | ||
@@ -9,9 +10,9 @@ "contributors": [ | ||
"name": "Tanguy Krotoff", | ||
"url": "https://github.com/tkrotoff", | ||
"githubUsername": "tkrotoff" | ||
"githubUsername": "tkrotoff", | ||
"url": "https://github.com/tkrotoff" | ||
}, | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender", | ||
"githubUsername": "BendingBender" | ||
"githubUsername": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
} | ||
@@ -28,4 +29,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a72dbd15200b6dd4b37c8e195404229c1831dd46a4c11db17cd2321cf5b70292", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "c75bd1d60fc0bfcf8fdd32c414f83dc13042504f53b7e6487aa65037f1dc19de", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,33 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses/v1. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses/v1/index.d.ts) | ||
````ts | ||
export = status; | ||
declare const status: Status & CodesToMessages & MessagesToCodes; | ||
interface Status { | ||
STATUS_CODES: { [code: number]: string }; | ||
codes: number[]; | ||
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; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 24 Jun 2020 06:29:46 GMT | ||
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Tanguy Krotoff](https://github.com/tkrotoff), and [BendingBender](https://github.com/BendingBender). |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3768
0
41
16