@studiohyperdrive/ngx-forms
Version:
An Angular package to help with complex forms and their validation.
10 lines (9 loc) • 362 B
TypeScript
import { FormControl } from '@angular/forms';
/**
* Validates whether the inputted value has exceeded the maximum amount of decimals after the comma
*
* @param max - The maximum number of decimals after the comma
*/
export declare const decimalsAfterCommaValidator: (max: number) => (control: FormControl) => {
invalidDecimalsAfterComma: true;
} | null;