UNPKG

453 BTypeScriptView Raw
1import { RelationMetadata, RelationType } from '../relations';
2export declare class InvalidRelationError<Props extends object = {}> extends Error {
3 code: string;
4 reason: string;
5 relationName: string;
6 relationType: RelationType;
7 sourceModelName: string;
8 constructor(reason: string, relationMeta: RelationMetadata, extraProperties?: Props);
9}
10export declare function isInvalidRelationError(e: any): e is InvalidRelationError<any>;