laravel-jstools
Version:
JS tools for building front-side of Laravel applications
22 lines (21 loc) • 881 B
TypeScript
import { Service } from 'laravel-jstools-di';
import { ValidateServiceContract } from './contracts/ValidateServiceContract';
import { ValidateErrorListInterface } from './interfaces/ValidateErrorListInterface';
import { AnyObjInterface } from '../../interfaces/AnyObjInterface';
import { RuleListInterface } from './interfaces/RuleListInterface';
export declare class ValidateService extends Service implements ValidateServiceContract {
validate(data: AnyObjInterface, ruleList: RuleListInterface): ValidateErrorListInterface | true;
private check;
private getRuleChecker;
private fakeCheck;
private checkConfirmed;
private checkEmail;
private checkInteger;
private checkMax;
private checkMin;
private checkNotIn;
private checkNullable;
private checkNumeric;
private checkPhone;
private checkRequired;
}