mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
// Type definitions for statuses v1.2.1
|
|
// Project: https://github.com/jshttp/statuses
|
|
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
|
// Definitions: https://github.com/DefinitelyTyped/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;
|
|
}
|