@types/statuses
Advanced tools
Comparing version 1.2.28 to 1.3.0
@@ -1,20 +0,26 @@ | ||
// Type definitions for statuses v1.2.1 | ||
// Type definitions for statuses 1.3 | ||
// 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; | ||
declare const status: Status & CodesToMessages & MessagesToCodes; | ||
interface Status { | ||
[code: number]: string; | ||
[msg: string]: any | number; | ||
codes: number[]; | ||
redirect: { [code: number]: boolean | undefined }; | ||
empty: { [code: number]: boolean | undefined }; | ||
retry: { [code: number]: boolean | undefined }; | ||
codes: Array<number>; | ||
redirect: { [code: number]: boolean }; | ||
empty: { [code: number]: boolean }; | ||
retry: { [code: number]: boolean }; | ||
(code: number | string): number; | ||
} | ||
declare var status: Status; | ||
export = status; | ||
interface CodesToMessages { | ||
[code: number]: string | undefined; | ||
} | ||
interface MessagesToCodes { | ||
[msg: string]: number | undefined; | ||
} |
{ | ||
"name": "@types/statuses", | ||
"version": "1.2.28", | ||
"description": "TypeScript definitions for statuses v1.2.1", | ||
"version": "1.3.0", | ||
"description": "TypeScript definitions for statuses", | ||
"license": "MIT", | ||
"author": "Tanguy Krotoff <https://github.com/tkrotoff>", | ||
"contributors": [ | ||
{ | ||
"name": "Tanguy Krotoff", | ||
"url": "https://github.com/tkrotoff" | ||
}, | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
} | ||
], | ||
"main": "", | ||
@@ -14,4 +23,5 @@ "repository": { | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "95b25e47f1b7af8eea52f30a23a983aecedd137166ebe6313df9f7ee79df2e17" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "1c472183dbef112dc9e6950f4a054008d23c0484338ae0da624e38a8f36bfc90", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for statuses v1.2.1 (https://github.com/jshttp/statuses). | ||
This package contains type definitions for statuses (https://github.com/jshttp/statuses). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/statuses | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: status | ||
* Last updated: Mon, 14 Aug 2017 19:47:58 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Tanguy Krotoff <https://github.com/tkrotoff>. | ||
These definitions were written by Tanguy Krotoff <https://github.com/tkrotoff>, BendingBender <https://github.com/BendingBender>. |
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
3184
20
17