UNPKG

nowjs-core

Version:

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

13 lines (12 loc) 653 B
import { StringFormatType } from '../../utils/index'; import { PatternValidatorBase } from './index'; export declare const VALIDATOR_IP_METADATA_KEY: unique symbol; export interface IPValidatorOptions { Version?: string[]; NetMask?: boolean; } export declare function isIP(options?: IPValidatorOptions, errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void; export declare const PATTERN_IP_UNIVERSAL: RegExp; export declare class IPValidator extends PatternValidatorBase { constructor(options?: IPValidatorOptions, errorMessage?: StringFormatType); }