From 6f0ff588bc9ac0841de6472095dedfa3dcf3853d Mon Sep 17 00:00:00 2001 From: luoxi Date: Fri, 29 Aug 2025 10:22:20 +0800 Subject: [PATCH] fix api warning Signed-off-by: luoxi --- api/@internal/component/ets/nav_destination.d.ts | 2 +- api/@internal/component/ets/navigation.d.ts | 2 +- api/@ohos.arkui.ArcSwiper.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@internal/component/ets/nav_destination.d.ts b/api/@internal/component/ets/nav_destination.d.ts index 4755ea17c1..550fd7510f 100644 --- a/api/@internal/component/ets/nav_destination.d.ts +++ b/api/@internal/component/ets/nav_destination.d.ts @@ -1026,7 +1026,7 @@ declare class NavDestinationAttribute extends CommonMethod * * @param { ResourceStr | PixelMap | SymbolGlyphModifier } icon - Icon of the back button on the title bar. - * @param { ResourceStr } accessibilityText - Accessibility text for the back button. + * @param { ResourceStr } [accessibilityText] - Accessibility text for the back button. *
Default value: **back** when the system language is English. * @returns { NavDestinationAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@internal/component/ets/navigation.d.ts b/api/@internal/component/ets/navigation.d.ts index 50cd9e817d..7dd040a649 100644 --- a/api/@internal/component/ets/navigation.d.ts +++ b/api/@internal/component/ets/navigation.d.ts @@ -3084,7 +3084,7 @@ declare class NavigationAttribute extends CommonMethod { * Sets the back button icon and accessibility broadcast content. * * @param { string | PixelMap | Resource | SymbolGlyphModifier } icon - Indicates icon of back button - * @param { ResourceStr } accessibilityText - Indicates content needs to broadcast. + * @param { ResourceStr } [accessibilityText] - Indicates content needs to broadcast. * Default value: **back** when the system language is English. * @returns { NavigationAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@ohos.arkui.ArcSwiper.d.ts b/api/@ohos.arkui.ArcSwiper.d.ts index 8add581205..012196638d 100644 --- a/api/@ohos.arkui.ArcSwiper.d.ts +++ b/api/@ohos.arkui.ArcSwiper.d.ts @@ -70,7 +70,7 @@ export class ArcSwiperController { /** * Finish the swiper animation. * - * @param { FinishAnimationHandler } handler - The handler is used to listen for the end of the animation. + * @param { FinishAnimationHandler } [handler] - The handler is used to listen for the end of the animation. * @syscap SystemCapability.ArkUI.ArkUI.Circle * @crossplatform * @atomicservice @@ -213,7 +213,7 @@ interface ArcSwiperInterface { /** * Create ArcSwiper component. * - * @param { ArcSwiperController } controller + * @param { ArcSwiperController } [controller] * @returns { ArcSwiperAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Circle * @crossplatform -- Gitee