@rero/ng-core
Version:
RERO angular core library.
12 lines (11 loc) • 515 B
TypeScript
import { ValidatorFn } from '@angular/forms';
export declare class TimeValidator {
static readonly FORMAT = "hh:mm";
/**
* Allow to control if time interval limits are well formed : the end limit should be 'older' the start limit
* @param start: the field name where to find the start limit value
* @param end: the field name where to find the end limit value
*/
static greaterThanValidator(start: string, end: string): ValidatorFn;
static RangePeriodValidator(): ValidatorFn;
}