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) 978 B
import { StringFormatType } from '../../utils/index'; import { PatternValidatorBase } from './index'; export declare const VALIDATOR_POSTALCODE_METADATA_KEY: unique symbol; export declare function isPostalCode(style?: string, errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void; export declare const PATTERN_POSTALCODE_UNIVERSAL: RegExp; export declare const PATTERN_POSTALCODE_US: RegExp; export declare const PATTERN_POSTALCODE_IR: RegExp; export declare const PATTERN_POSTALCODE_EN: RegExp; export declare const PATTERN_POSTALCODE_UE: RegExp; export declare const PATTERN_POSTALCODE_SA: RegExp; export declare const PATTERN_POSTALCODE_IQ: RegExp; export declare const PATTERN_POSTALCODE_AF: RegExp; export declare class PostalCodeValidator extends PatternValidatorBase { private style; constructor(style?: string, errorMessage?: StringFormatType); get Style(): string; }