UNPKG

@typeheim/orm-on-fire

Version:
14 lines (13 loc) 440 B
import { ChangeType } from '../Contracts/Types'; export declare class ChangedEntities<Entity> { protected entityChanges: EntityChange<Entity>[]; constructor(entityChanges: EntityChange<Entity>[]); forEach(callback: ((entity: Entity, changeType: ChangeType) => void)): void; toArray(): Entity[]; get length(): number; } interface EntityChange<Entity> { type: ChangeType; entity: Entity; } export {};