• Version 2.0.5
  • Published
  • 4.63 kB
  • No dependencies
  • MIT license


npm i @types/statuses
yarn add @types/statuses
pnpm add @types/statuses


TypeScript definitions for statuses



variable status

const status: status;


    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.


                        To add a badge like this onejsDocs.io badgeto 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
                        • 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>