@types/statuses
- Version 2.0.5
- Published
- 4.63 kB
- No dependencies
- MIT license
Install
npm i @types/statuses
yarn add @types/statuses
pnpm add @types/statuses
Overview
TypeScript definitions for statuses
Index
Variables
variable status
const status: status;
Interfaces
interface status
interface status {}
property code
code: { [msg: string]: number | undefined };
property codes
codes: number[];
property empty
empty: { [code: number]: boolean | undefined };
property message
message: { [code: number]: string | undefined };
property redirect
redirect: { [code: number]: boolean | undefined };
property retry
retry: { [code: number]: boolean | undefined };
call signature
(code: number): string;
call signature
<S extends string>(code: S): status.Result<S>;
Type Aliases
type Result
type Result<S extends string> = S extends IsNumericString<S> ? string : S extends IsNonNumericString<S> ? number : string | number;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/statuses
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/statuses)
- HTML<a href="https://www.jsdocs.io/package/@types/statuses"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2994 ms. - Missing or incorrect documentation? Open an issue for this package.