@typeheim/orm-on-fire
Version:
Firestore ORM
10 lines (9 loc) • 446 B
TypeScript
import { EntityManager } from './EntityManager';
import { ReactivePromise } from '@typeheim/fire-rx';
import { CollectionReference } from './CollectionReference';
export declare class DocInitializer<Entity> {
protected entity: Entity;
protected entityManager: EntityManager<Entity>;
constructor(entity: Entity, entityManager: EntityManager<Entity>);
addTo(collectionRef: CollectionReference): ReactivePromise<boolean>;
}