UNPKG

@gdimx/ngx-input-validator

Version:

Libreriía de validaciones reutilizables para formularios en angular

50 lines (49 loc) 1.46 kB
export declare class NgxInputValidator { static required(control: any): { [key: string]: any; } | null; static email(control: any): { [key: string]: any; } | null; static alpha(control: any): { [key: string]: any; } | null; static alphaNumeric(control: any): { [key: string]: any; } | null; static numeric(control: any): { [key: string]: any; } | null; static minLength(min: number): (control: any) => { [key: string]: any; } | null; static maxLength(max: number): (control: any) => { [key: string]: any; } | null; static allowedCharacters(regex: RegExp, errorKey?: string): (control: any) => { [key: string]: any; } | null; static noSpaces(control: any): { [key: string]: any; } | null; static onlyUppercase(control: any): { [key: string]: any; } | null; static onlyLowercase(control: any): { [key: string]: any; } | null; static disallowedCharacters(regex: RegExp, errorKey?: string): (control: any) => { [key: string]: any; } | null; static decimal(control: any): { [key: string]: any; } | null; static rfc(control: any): { [key: string]: any; } | null; static curp(control: any): { [key: string]: any; } | null; static getErrorMessage(control: any): string; static getAllFormErrors(form: any): string; }