UNPKG

nowjs-core

Version:

NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence

18 lines (17 loc) 923 B
import { StringFormatType } from '../../utils/index'; import { PatternValidatorBase } from './index'; export declare const VALIDATOR_PHONE_METADATA_KEY: unique symbol; export declare function isPhone(style?: string, errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void; export declare const PATTERN_PHONE_UNIVERSAL: RegExp; export declare const PATTERN_PHONE_US: RegExp; export declare const PATTERN_PHONE_IR: RegExp; export declare const PATTERN_PHONE_EN: RegExp; export declare const PATTERN_PHONE_UE: RegExp; export declare const PATTERN_PHONE_SA: RegExp; export declare const PATTERN_PHONE_IQ: RegExp; export declare const PATTERN_PHONE_AF: RegExp; export declare class PhoneValidator extends PatternValidatorBase { private style; constructor(style?: string, errorMessage?: StringFormatType); get Style(): string; }