From 171b30121e4685385bb2c55318644d07047bbfc1 Mon Sep 17 00:00:00 2001 From: liwenzhen Date: Fri, 8 Aug 2025 11:13:43 +0800 Subject: [PATCH] change comment of addMonitor/clearMonitor Signed-off-by: liwenzhen --- api/@ohos.arkui.StateManagement.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.arkui.StateManagement.d.ts b/api/@ohos.arkui.StateManagement.d.ts index 71a7627a27..ab3c37adc5 100644 --- a/api/@ohos.arkui.StateManagement.d.ts +++ b/api/@ohos.arkui.StateManagement.d.ts @@ -325,7 +325,7 @@ export declare class UIUtils { * @param { string | string[] } path monitored change for state variable. * @param { MonitorCallback } monitorCallback the function that triggers the callback when state variable change. * @param { MonitorOptions} [options] the monitor configuration parameter. - * @throws { BusinessError } 130000 - The target is not a custom component instance or V2 class instance. + * @throws { BusinessError } 130000 - The target is not a component decorated with @ObservedV2 (containing at least one @Trace) or a class decorated with @ComponentV2. * @throws { BusinessError } 130001 - The path is invalid. * @throws { BusinessError } 130002 - monitorCallback is not a function or an anonymous function. * @static @@ -342,7 +342,7 @@ export declare class UIUtils { * @param { object } target class instance or custom component instance. * @param { string | string[] } path monitored change for state variable. * @param { MonitorCallback } [monitorCallback] the function that triggers the callback when state variable change. - * @throws { BusinessError } 130000 - The target is not a custom component instance or V2 class instance. + * @throws { BusinessError } 130000 - The target is not a component decorated with @ObservedV2 (containing at least one @Trace) or a class decorated with @ComponentV2. * @throws { BusinessError } 130001 - The path is invalid. * @throws { BusinessError } 130002 - monitorCallback is not a function or an anonymous function. * @static -- Gitee