@azrico/webobject 1.4.154 → 1.4.155
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropOf, WriteablePropOf } from "@azrico/types";
|
|
2
|
-
import SimpleObject from "./SimpleObject";
|
|
2
|
+
import SimpleObject, { WithManager } from "./SimpleObject";
|
|
3
3
|
import { saveResultType, sendChangesType } from "./SimpleObject";
|
|
4
4
|
import { ClassType } from "@azrico/types";
|
|
5
5
|
import RawObject from "./MapableObject";
|
|
@@ -19,12 +19,12 @@ export declare class ObjectManager<ObjType extends SimpleObject> extends RawObje
|
|
|
19
19
|
* Get the object this manager is managing
|
|
20
20
|
* @returns the object
|
|
21
21
|
*/
|
|
22
|
-
get obj(): ObjType | undefined;
|
|
22
|
+
get obj(): WithManager<ObjType> | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Get the object this manager is managing
|
|
25
25
|
* @returns the object
|
|
26
26
|
*/
|
|
27
|
-
getObject(): ObjType | undefined;
|
|
27
|
+
getObject(): WithManager<ObjType> | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Set the object this manager is managing
|
|
30
30
|
* @param toObj
|
|
@@ -6,6 +6,7 @@ export type saveResultType = "normal" | "nothing" | "error" | "canceled";
|
|
|
6
6
|
export type saveType = "normal" | "quick";
|
|
7
7
|
export type sendChangesType = boolean | "auto";
|
|
8
8
|
export type WithManager<T extends SimpleObject> = Ensure<T, "manager">;
|
|
9
|
+
export type WithManagerOrNot<T extends SimpleObject> = T | WithManager<T>;
|
|
9
10
|
export declare class SimpleObject extends MapableObject {
|
|
10
11
|
#private;
|
|
11
12
|
static readonly __cache_name?: string;
|