fix(classes.doc): Avoid emitting instance fields for collection and manager to preserve decorator-defined prototype getters

This commit is contained in:
2025-12-01 11:48:28 +00:00
parent 40bc408d8f
commit e4faca88ba
4 changed files with 27 additions and 3 deletions

View File

@@ -436,10 +436,10 @@ export class SmartDataDbDoc<T extends TImplements, TImplements, TManager extends
* the collection object an Doc belongs to
*/
public static collection: SmartdataCollection<any>;
public collection: SmartdataCollection<any>;
declare public collection: SmartdataCollection<any>;
public static defaultManager;
public static manager;
public manager: TManager;
declare public manager: TManager;
/**
* Helper to get collection with fallback to static for Deno compatibility