/** * Interface for the error dictionary */ interface ErrorDictionary { [key: string]: ErrorFactory; } /** * Interface for individual errors in error dictionary. * Optionally takes an object as an argument from the thrown validation error, * which it can use to build more informative error messages */ declare type ErrorFactory = ({}?: any) => string; /** * Dictionary of the default errors used by the control-errors directive to map * validator key to error message */ export declare const defaultErrors: ErrorDictionary; /** * We export the interfaces so end users can easily strongly type their own custom error dictionary */ export { ErrorDictionary, ErrorFactory };