UNPKG

@techmmunity/symbiosis

Version:

Symbiosis - The Ultimate OM For All Databases

20 lines (19 loc) 847 B
import type { EntityManager } from "../../../entity-manager"; import type { CustomClass } from "../../../entity-manager/types/metadata-type"; import type { DatabaseEntity } from "../../../types/database-entity"; import type { FindConditions } from "../../types/find-conditions"; import type { BaseQueryOptions } from "../../types/query-options"; interface Injectables { entityManager: EntityManager; entity: CustomClass; } export interface BeforeDeleteInput<Entity> { where: FindConditions<Entity>; options?: BaseQueryOptions; } export interface BeforeDeleteOutput { where: FindConditions<DatabaseEntity>; options?: BaseQueryOptions; } export declare const beforeDelete: <Entity>({ entityManager, entity }: Injectables, { where: rawWhere, options: rawOptions }: BeforeDeleteInput<Entity>) => BeforeDeleteOutput; export {};