UNPKG

380 BTypeScriptView Raw
1import { Entity } from '../model';
2export declare class InvalidBodyError<ID, Props extends object = {}> extends Error {
3 code: string;
4 entityName: string;
5 entityId: ID;
6 statusCode: number;
7 constructor(entityOrName: typeof Entity | string, entityId: ID, extraProperties?: Props);
8}
9export declare function isInvalidBodyError(e: any): e is InvalidBodyError<any>;