import { FormControl } from '@angular/forms'; import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; /** * @author Alex Hodson * @description an interface which defines the required properties for the configuration of a custom date input element */ export interface CustomDateInputConfig { id: string; label: string; value: FormControl; name?: string; handleChange: Function; errorMessage?: string; disabled?: boolean; embed?: boolean; ranged?: boolean; testId?: string; restrictions?: { minDate?: NgbDateStruct; maxDate?: NgbDateStruct; daysToRestrict?: number[]; specificDatesToRestrict?: { year: number; month: number; day: number; }[]; }; }