UNPKG

@loopback/repository

Version:

Define and implement a common set of interfaces for interacting with databases

10 lines (9 loc) 380 B
import { Entity } from '../model'; export declare class InvalidBodyError<ID, Props extends object = {}> extends Error { code: string; entityName: string; entityId: ID; statusCode: number; constructor(entityOrName: typeof Entity | string, entityId: ID, extraProperties?: Props); } export declare function isInvalidBodyError(e: any): e is InvalidBodyError<any>;