UNPKG

http-problem-details-mapper

Version:
12 lines (11 loc) 368 B
import { IErrorMapper } from './IErrorMapper'; interface MapperRegistryOptions { useDefaultErrorMapper: boolean; } export declare class MapperRegistry { private mappers; constructor(options?: MapperRegistryOptions); registerMapper(mapper: IErrorMapper, replace?: boolean): MapperRegistry; getMapper(error: Error): IErrorMapper | null; } export {};