@techmmunity/symbiosis
Version:
Symbiosis - The Ultimate OM For All Databases
20 lines (19 loc) • 842 B
TypeScript
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 BeforeCountInput<Entity> {
where: FindConditions<Entity>;
options?: BaseQueryOptions;
}
export interface BeforeCountOutput {
where: FindConditions<DatabaseEntity>;
options?: BaseQueryOptions;
}
export declare const beforeCount: <Entity>({ entityManager, entity }: Injectables, { where: rawWhere, options: rawOptions }: BeforeCountInput<Entity>) => BeforeCountOutput;
export {};