typescript-libraries
Version:
To install this library, run:
17 lines (16 loc) • 514 B
TypeScript
export interface ITSValidator {
amount: number;
unit?: string;
min?: number;
max?: number;
balance?: number;
}
export declare class TSValidator {
options: ITSValidator;
constructor(options?: any);
static compareProperties(source: any, target: any): any[];
compare(prefix?: string): Array<any>;
compareOption(option: string, compare: (o: number, c?: number) => boolean): any;
static condition(value: any, criteria?: any): boolean;
static message(option: any): any;
}