From d875b34899bb710fa965a48552291ba54b1392cd Mon Sep 17 00:00:00 2001 From: liuhui Date: Wed, 10 Sep 2025 11:49:09 +0800 Subject: [PATCH] number to int Signed-off-by: liuhui --- api/@ohos.arkui.UIContext.static.d.ets | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/api/@ohos.arkui.UIContext.static.d.ets b/api/@ohos.arkui.UIContext.static.d.ets index 848cc3fee5..05b53e024c 100755 --- a/api/@ohos.arkui.UIContext.static.d.ets +++ b/api/@ohos.arkui.UIContext.static.d.ets @@ -2500,10 +2500,7 @@ export declare class UIContext { * get the filtered attributes of the component tree. * @param { Array } [filters] - the list of filters used to filter out component tree to be obtained. * @returns { string } the specified attributes of the component tree in json string. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameters types. - *
3. Parameter verification failed. + * @throws { BusinessError } 100023 - Unable to obtain current ui context. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -2512,17 +2509,15 @@ export declare class UIContext { /** * get the filtered attributes of the component tree with the specified id and depth * @param { string } id - ID of the specified component tree to be obtained. - * @param { number } depth - depth of the component tree to be obtained. + * @param { int } depth - depth of the component tree to be obtained. * @param { Array } [filters] - the list of filters used to filter out component tree to be obtained. * @returns { string } the specified attributes of the component tree in json string. - * @throws { BusinessError } 401 - Parameter error. Possible causes: - *
1. Mandatory parameters are left unspecified. - *
2. Incorrect parameters types. - *
3. Parameter verification failed. + * @throws { BusinessError } 100023 - Unable to obtain current ui context. + * @throws { BusinessError } 100024 - The parameter depth must be greater than 0. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getFilteredInspectorTreeById(id: string, depth: number, filters?: Array): string; + getFilteredInspectorTreeById(id: string, depth: int, filters?: Array): string; /** * get object router. -- Gitee