export interface ErrorControl { isValidValue(value: T): ErrorControlType; } export interface ErrorControlType { hasError: boolean; errorMessage?: string; correctValue?: T; }