Installation
npm install --save @types/statuses
Summary
This package contains type definitions for statuses (https://github.com/jshttp/statuses).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses/v1.
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: Tue, 07 Nov 2023 20:08:00 GMT
- Dependencies: none
Credits
These definitions were written by Tanguy Krotoff, and BendingBender.