@azrico/webobject 1.4.193 → 1.4.194
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,10 +1,11 @@
|
|
|
1
|
+
import { ClassType } from "@azrico/types";
|
|
1
2
|
import { WebObject, sendChangesType } from "../index";
|
|
2
3
|
import ObjectManager from "../structs/ObjectManager";
|
|
3
4
|
/**
|
|
4
5
|
* This class manages the events of an Simple Object
|
|
5
6
|
*/
|
|
6
7
|
export declare class WebObjectManager<ObjType extends WebObject> extends ObjectManager<ObjType> {
|
|
7
|
-
protected static readonly __object_type: () => typeof WebObject
|
|
8
|
+
protected static readonly __object_type: () => typeof WebObject | ClassType<WebObject>;
|
|
8
9
|
static readonly __save_message: boolean;
|
|
9
10
|
constructor(defaultObject?: ObjType);
|
|
10
11
|
setObject(toObj: ObjType | undefined): boolean;
|
|
@@ -61,6 +62,6 @@ export declare class WebObjectManager<ObjType extends WebObject> extends ObjectM
|
|
|
61
62
|
onSave(...p: any): Promise<any>;
|
|
62
63
|
onAfterSave(...p: any): Promise<any>;
|
|
63
64
|
getObjectType(): typeof WebObject;
|
|
64
|
-
static getObjectType(): typeof WebObject
|
|
65
|
+
static getObjectType(): typeof WebObject | ClassType<WebObject>;
|
|
65
66
|
}
|
|
66
67
|
export default WebObjectManager;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropOf, WriteablePropOf } from "@azrico/types";
|
|
2
2
|
import SimpleObject, { WithManager } from "./SimpleObject";
|
|
3
3
|
import { saveResultType, sendChangesType } from "./SimpleObject";
|
|
4
|
+
import { ClassType } from "@azrico/types";
|
|
4
5
|
import RawObject from "./MapableObject";
|
|
5
6
|
/**
|
|
6
7
|
* This class manages the events of an Simple Object
|
|
@@ -9,7 +10,7 @@ export declare class ObjectManager<ObjType extends SimpleObject> extends RawObje
|
|
|
9
10
|
__eventList: any;
|
|
10
11
|
__eventPrefix?: string;
|
|
11
12
|
__stopEvents?: boolean;
|
|
12
|
-
protected static readonly __object_type: () => typeof SimpleObject
|
|
13
|
+
protected static readonly __object_type: () => typeof SimpleObject | ClassType<SimpleObject>;
|
|
13
14
|
protected __last_object_data: {
|
|
14
15
|
[key: string]: string;
|
|
15
16
|
};
|
|
@@ -130,6 +131,6 @@ export declare class ObjectManager<ObjType extends SimpleObject> extends RawObje
|
|
|
130
131
|
static getErrors(o: ObjectManager<any>): any[];
|
|
131
132
|
static clearErrors(o: ObjectManager<any>): boolean;
|
|
132
133
|
getObjectType(): typeof SimpleObject;
|
|
133
|
-
static getObjectType(): typeof SimpleObject
|
|
134
|
+
static getObjectType(): typeof SimpleObject | ClassType<SimpleObject>;
|
|
134
135
|
}
|
|
135
136
|
export default ObjectManager;
|