/** * Typescript helper: the attributes that all elements that * interact with the DOM validation system possess. */ export interface ValidatableInput extends HTMLElement { value: string; name?: string; checkValidity(): boolean; reportValidity(): boolean; setCustomValidity(error: string): void; validity: ValidityState; validationMessage: string; }