UNPKG

538 BTypeScriptView Raw
1/**
2 * Protocol for handling options-related issues.
3 */
4import { IOptionsErrorContext, NamedValues, OptionsError } from './types';
5export interface IOptionsErrorHandler {
6 /**
7 * This method is normally expected to throw an error, based on "err"
8 */
9 handle(err: OptionsError, ctx: IOptionsErrorContext): NamedValues;
10}
11/**
12 * Default handler for options-related issues.
13 */
14export declare class DefaultErrorHandler implements IOptionsErrorHandler {
15 handle(err: OptionsError, ctx: IOptionsErrorContext): NamedValues;
16}