smartdata/dist/smartdata.classes.dbdoc.d.ts

11 lines
364 B
TypeScript
Raw Normal View History

2016-09-13 20:53:21 +00:00
import { Db } from './smartdata.classes.db';
import { DbCollection } from './smartdata.classes.dbcollection';
export declare type TDocCreation = 'db' | 'data' | 'mixed';
export declare class DbDoc<T> {
collection: DbCollection<T>;
creationType: TDocCreation;
constructor(collectionNameArg: string, dbArg: Db);
save(): void;
saveDeep(): void;
}