5.0.8 • Published 6 months ago

@types/joi-phone-number v5.0.8

Weekly downloads
489
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for joi-phone-number 5.0
// Project: https://github.com/Salesflare/joi-phone-number
// Definitions by: Marvin Witt <https://github.com/NurMarvin/>
//                 James Lismore <https://github.com/jlismore/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { StringSchema, Extension, Root } from 'joi';

declare module 'joi' {
    interface PhoneNumberOptions {
        defaultCountry?: string[] | string | undefined;
        strict?: boolean | undefined;
        format?: 'e164' | 'international' | 'national' | 'rfc3966' | 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: Sat, 28 Aug 2021 01:31:19 GMT
  • Dependencies: @types/joi
  • Global values: none

Credits

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

5.0.6

8 months ago

5.0.8

6 months ago

5.0.7

7 months ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

4 years ago