nowjs-core
Version:
NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence
12 lines (11 loc) • 689 B
TypeScript
import { StringFormatType } from '../../utils/index';
import { PatternValidatorBase } from './index';
export declare const VALIDATOR_NUMERIC_METADATA_KEY: unique symbol;
export declare type NumericValidatorStyle = 'integer' | 'decimal';
export declare function isNumeric(style?: NumericValidatorStyle, errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void;
export declare const PATTERN_NUMERIC: RegExp;
export declare class NumericValidator extends PatternValidatorBase {
private style;
constructor(style?: NumericValidatorStyle, errorMessage?: StringFormatType);
get Style(): string;
}