svogv
Version:
A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.
14 lines (13 loc) • 408 B
TypeScript
import { FormControl } from '@angular/forms';
/**
* A custom validator to valdiate a range of numbers or dates.
* This is internally to support the infarstructure and not intended to being used by custom code.
*
* @param p The field's name
*
*/
export declare function validateRange(f: number | Date, t: number | Date): (c: FormControl) => {
range: {
valid: boolean;
};
};