entropic-bond 1.53.24 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,7 +187,7 @@ export declare class Persistent {
|
|
|
187
187
|
static searchableArrayNameFor(propName: string): string;
|
|
188
188
|
private fromDeepObject;
|
|
189
189
|
private toDeepObj;
|
|
190
|
-
static collectionPath(
|
|
190
|
+
static collectionPath(prop: PersistentProperty, ownerInstance?: Persistent): string;
|
|
191
191
|
private toReferenceObj;
|
|
192
192
|
private buildRefObject;
|
|
193
193
|
private pushDocument;
|
|
@@ -222,6 +222,8 @@ export type CachedPropsConfig<T extends Persistent> = {
|
|
|
222
222
|
};
|
|
223
223
|
export interface PersistentProperty {
|
|
224
224
|
name: string;
|
|
225
|
+
/** The class that owns this property. It is not an instance of the class, but rather the class itself */ ownerClassName?: string;
|
|
226
|
+
_target: Persistent;
|
|
225
227
|
isReference?: boolean;
|
|
226
228
|
isPureReference?: boolean;
|
|
227
229
|
storeInCollection?: string | CollectionPathCallback;
|
|
@@ -314,7 +316,7 @@ export declare function persistentParser(options?: Partial<PersistentProperty>):
|
|
|
314
316
|
* @param className the name of the class
|
|
315
317
|
* @param annotation an optional annotation that can be used to store additional information
|
|
316
318
|
*/
|
|
317
|
-
export declare function registerPersistentClass(className
|
|
319
|
+
export declare function registerPersistentClass(className?: string, annotation?: unknown): (constructor: PersistentConstructor) => void;
|
|
318
320
|
/**
|
|
319
321
|
* Decorator to register a legacy name for a persistent class. This is useful when you want to
|
|
320
322
|
* be able to load old data that was stored with a different class name.
|
|
@@ -323,8 +325,8 @@ export declare function registerPersistentClass(className: string, annotation?:
|
|
|
323
325
|
export declare function registerLegacyClassName(legacyName: string): (constructor: PersistentConstructor) => void;
|
|
324
326
|
/**
|
|
325
327
|
* Decorator to make a `Persistent` array property searchable by the
|
|
326
|
-
*
|
|
327
|
-
* When a property is marked as searchable, the
|
|
328
|
+
* persistence engine.
|
|
329
|
+
* When a property is marked as searchable, the persistence engine will
|
|
328
330
|
* generate internally a new property with the same name but with the suffix `_searchable`
|
|
329
331
|
* and prefixed with the `_` character. This new property will contain an array
|
|
330
332
|
* with the `id` of the persistent elements in the original array.
|