@types/joi-phone-number
TypeScript icon, indicating that this package has built-in type declarations

5.0.8 • Public • Published

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

/// <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, joi

Credits

These definitions were written by Marvin Witt, and James Lismore.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/joi-phone-number

Weekly Downloads

8,939

Version

5.0.8

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • types