5.0.8 • Published 6 months ago
@types/joi-phone-number v5.0.8
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.