@typeheim/orm-on-fire
Version:
Firestore ORM
14 lines (13 loc) • 440 B
TypeScript
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 {};