@nova-ui/bits
Version:
SolarWinds Nova Framework
21 lines (20 loc) • 573 B
TypeScript
import { ValidationErrors, ValidatorFn } from "@angular/forms";
import { Moment } from "moment/moment";
/**
* Class that represents custom Nui validators
*/
/**
* @ignore
*/
export declare class NuiValidators {
/**
* Validator that returns validation function and checks if value matches integer regex.
* @param unsigned
* @returns
*/
static integer(unsigned?: boolean): ValidatorFn;
/**
* Validator that returns date validation using Moment.isValid method.
*/
static dateFormat(value: Moment): ValidationErrors | null;
}