From 8e51b518b1fe1a8426669ee7831782c428f77237 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 9 Jun 2021 14:10:08 +0200 Subject: [PATCH] fix(core): update --- ts/smartdata.classes.collection.ts | 2 +- ts/smartdata.classes.doc.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ts/smartdata.classes.collection.ts b/ts/smartdata.classes.collection.ts index a5aa538..72f6d38 100644 --- a/ts/smartdata.classes.collection.ts +++ b/ts/smartdata.classes.collection.ts @@ -41,7 +41,7 @@ export function Collection(dbArg: SmartdataDb | TDelayed) { }; } -interface IManager { +export interface IManager { db: SmartdataDb } diff --git a/ts/smartdata.classes.doc.ts b/ts/smartdata.classes.doc.ts index b8f4137..10a18fe 100644 --- a/ts/smartdata.classes.doc.ts +++ b/ts/smartdata.classes.doc.ts @@ -3,7 +3,7 @@ import * as plugins from './smartdata.plugins'; import { ObjectMap } from '@pushrocks/lik'; import { SmartdataDb } from './smartdata.classes.db'; -import { SmartdataCollection } from './smartdata.classes.collection'; +import { IManager, SmartdataCollection } from './smartdata.classes.collection'; export type TDocCreation = 'db' | 'new' | 'mixed'; @@ -41,12 +41,13 @@ export function unI() { }; } -export class SmartDataDbDoc { +export class SmartDataDbDoc { /** * the collection object an Doc belongs to */ public static collection: SmartdataCollection; public collection: SmartdataCollection; + public manager: TManager; /** * how the Doc in memory was created, may prove useful later.