# @types/joi-phone-number

> TypeScript definitions for joi-phone-number

Latest version **5.0.8** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/joi-phone-number
pnpm add @types/joi-phone-number
yarn add @types/joi-phone-number
bun add @types/joi-phone-number
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.8 |
| Published | 2023-11-07 |
| First published | 2020-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51436 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/joi-phone-number
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joi-phone-number
- npm.io page: https://npm.io/package/@types/joi-phone-number

## Dependencies (2)

- [joi](https://npm.io/package/joi.md) ^17.3.0
- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 5.0.8 (latest) — 2023-11-07
- 5.0.5 (ts4.1) — 2022-10-11
- 5.0.4 (ts4.0) — 2022-08-04
- 5.0.3 (ts3.7) — 2021-08-28
- 5.0.2 (ts3.6) — 2021-07-08
- 5.0.1 (ts3.4) — 2021-01-14
- 5.0.0 (ts3.2) — 2020-11-05
- 5.0.7 — 2023-10-18
- 5.0.6 — 2023-09-15

## README

# Installation
> `npm install --save @types/joi-phone-number`

# Summary
This package contains type definitions for joi-phone-number (https://github.com/Salesflare/joi-phone-number).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joi-phone-number.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/joi-phone-number/index.d.ts)
````ts
/// <reference types="node" />
import { Extension, Reference, Root, StringSchema } from "joi";

declare module "joi" {
    interface PhoneNumberOptions {
        defaultCountry?: string[] | string | Reference | undefined;
        strict?: boolean | Reference | undefined;
        format?: "e164" | "international" | "national" | "rfc3966" | Reference | undefined;
    }

    interface StringSchema {
        phoneNumber(options?: PhoneNumberOptions): this;
    }
}

interface StringExtension extends Extension {
    type: "string";
    base: StringSchema;
}

declare function JoiStringFactory(joi: Root): StringExtension;
export = JoiStringFactory;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [joi](https://npmjs.com/package/joi)

# Credits
These definitions were written by [Marvin Witt](https://github.com/NurMarvin), and [James Lismore](https://github.com/jlismore).

---
_Source: https://npm.io/package/@types/joi-phone-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
