diff --git a/api/@ohos.arkui.StateManagement.d.ts b/api/@ohos.arkui.StateManagement.d.ts index 71a7627a2761ee983cddbfe57d2b3fd7391cc712..ab3c37adc572f246bc1673c9967825d339dd211d 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