UNPKG

http-problem-details-mapper

Version:
13 lines (12 loc) 435 B
import { ProblemDocument } from 'http-problem-details'; declare type ErrorConstructor = new (...args: any[]) => Error; export interface IErrorMapper { readonly error: string; mapError(error: Error): ProblemDocument; } export declare abstract class ErrorMapper implements IErrorMapper { readonly error: string; constructor(ErrorType: ErrorConstructor); abstract mapError(error: Error): ProblemDocument; } export {};