@azrico/webobject 1.4.179 → 1.4.181
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,6 @@
|
|
|
1
1
|
import { SimpleObject, sendChangesType } from "../index";
|
|
2
2
|
import { WebObjectManager } from "../index";
|
|
3
|
+
import { IfAny } from "@azrico/types";
|
|
3
4
|
export type deltaParams = {
|
|
4
5
|
type?: string;
|
|
5
6
|
isChild?: boolean;
|
|
@@ -110,11 +111,11 @@ export declare class WebObject extends SimpleObject {
|
|
|
110
111
|
* get a single web object
|
|
111
112
|
* default order of parameters : search,readonly,fetchID
|
|
112
113
|
*/
|
|
113
|
-
static get_single<T extends WebObject>(...p: any[]): Promise<T | undefined>;
|
|
114
|
+
static get_single<T extends WebObject>(...p: any[]): Promise<IfAny<T, WebObject, T> | undefined>;
|
|
114
115
|
/**
|
|
115
116
|
* Get a list of web objects
|
|
116
117
|
* default order of parameters : search,readonly,fetchID
|
|
117
118
|
*/
|
|
118
|
-
static get_list(...p: any[]): Promise<Array<WebObject
|
|
119
|
+
static get_list<T extends WebObject>(...p: any[]): Promise<Array<IfAny<T, WebObject, T>>>;
|
|
119
120
|
}
|
|
120
121
|
export default WebObject;
|