ngx-numeric-range-form-field
Version:
Angular material numeric range form field
11 lines (10 loc) • 314 B
TypeScript
import { FormControl, FormGroup } from '@angular/forms';
export type INumericRange = {
minimum: number;
maximum: number;
};
type ControlsOf<T extends Record<string, unknown>> = {
[K in keyof T]: FormControl<T[K]>;
};
export type NumericRangeFormGroup = FormGroup<ControlsOf<INumericRange>>;
export {};