mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Add definitions for statuses (https://github.com/jshttp/statuses)
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// Type definitions for http-errors v1.2.1
|
||||
// Project: https://github.com/jshttp/statuses
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'statuses' {
|
||||
interface Status {
|
||||
[code: number]: string;
|
||||
[msg: string]: any | number;
|
||||
|
||||
codes: Array<number>;
|
||||
redirect: {[code: number]: boolean};
|
||||
empty: {[code: number]: boolean};
|
||||
retry: {[code: number]: boolean};
|
||||
|
||||
(code: number | string): number;
|
||||
}
|
||||
|
||||
var status: Status;
|
||||
export = status;
|
||||
}
|
||||
Reference in New Issue
Block a user