http-problem-details-mapper
Version:
Mapper functions for http-problem-details
12 lines (11 loc) • 368 B
TypeScript
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 {};