From ae7b95fdf706114f32a690e2ea879a8549f86eff Mon Sep 17 00:00:00 2001 From: pengzhiwen3 Date: Tue, 2 Sep 2025 10:11:42 +0800 Subject: [PATCH] =?UTF-8?q?undefined=E6=8E=A5=E5=8F=A3=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E9=80=82=E9=85=8Doverload&=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pengzhiwen3 --- api/@ohos.arkui.inspector.static.d.ets | 10 ---------- api/arkui/component/common.static.d.ets | 8 ++++---- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/api/@ohos.arkui.inspector.static.d.ets b/api/@ohos.arkui.inspector.static.d.ets index a454ff0267..bcdaf4a9ff 100644 --- a/api/@ohos.arkui.inspector.static.d.ets +++ b/api/@ohos.arkui.inspector.static.d.ets @@ -107,16 +107,6 @@ declare namespace inspector { overload off { offLayout, offDraw, offDrawChildren } } - /** - * Sets the component after layout or draw criteria and returns the corresponding listening handle - * @param { string } id - component id. - * @returns { ComponentObserver } create listener for observer component event. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - * @deprecated since 18 - * @useinstead ohos.arkui.UIContext.UIInspector#createComponentObserver - */ - function createComponentObserver(id: string): ComponentObserver; /** * Obtains all attributes of the component with the specified ID. * diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 404022f5a9..8c55de65cd 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -10858,12 +10858,12 @@ export declare interface CommonMethod { *
text, the screen reader will concatenate text from its child components (depth-first traversal). *
To prioritize accessibility text concatenation, set accessibilityPreferred in accessibilityGroup. *

- * @param { Resource | undefined } text - set accessibility text + * @param { Resource } text - set accessibility text * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default accessibilityTextOfResourceType(text: Resource | undefined): this; + default accessibilityTextOfResourceType(text: Resource): this; /** * @since 20 */ @@ -10914,12 +10914,12 @@ export declare interface CommonMethod { *
cannot be learned from component attributes and accessibility text. If a component contains *
both text information and the accessibility description, the text is read first and then the *
accessibility description, when the component is selected.

- * @param { Resource | undefined } description - set description of accessibility + * @param { Resource } description - set description of accessibility * @returns { this } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default accessibilityDescriptionOfResourceType(description: Resource | undefined): this; + default accessibilityDescriptionOfResourceType(description: Resource): this; /** * @since 20 */ -- Gitee