UNPKG

687 BTypeScriptView Raw
1// Type definitions for statuses 2.0
2// Project: https://github.com/jshttp/statuses
3// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
4// BendingBender <https://github.com/BendingBender>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
7export = status;
8
9declare const status: Status;
10
11interface Status {
12 (code_msg: number | string): number | string;
13
14 codes: number[];
15 code: { [msg: string]: number | undefined };
16 empty: { [code: number]: boolean | undefined };
17 message: { [code: number]: string | undefined };
18 redirect: { [code: number]: boolean | undefined };
19 retry: { [code: number]: boolean | undefined };
20}