@studiohyperdrive/ngx-forms
Version:
An Angular package to help with complex forms and their validation.
11 lines (10 loc) • 360 B
TypeScript
import { ValidatorFn } from '@angular/forms';
/**
* hasNoFutureDateValidator
*
* Validator function to ensure that the selected date is not in the future.
* If the date is in the future, it returns an error.
* @returns ValidationErrors if the date is in the future, otherwise null.
*
*/
export declare const hasNoFutureDateValidator: () => ValidatorFn;