support makeObserved

Signed-off-by: chenbenzhi <chenbenzhi@huawei.com>
This commit is contained in:
chenbenzhi 2024-08-03 22:51:27 +08:00
parent 224198957f
commit 28bd242f68

View File

@ -214,4 +214,18 @@ export declare class UIUtils {
* @since 12
*/
static getTarget<T extends object>(source: T): T;
/**
* Make non-observed data into observed data.
* Support non-observed class, JSON.parse Object and Sendable class.
*
* @param { T } source input source object data.
* @returns { T } proxy object from the source object data.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
static makeObserved<T extends object>(source: T): T;
}