diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 0f7ab57f03d7523b2e76d8da01bcd08992be747d..1415fce67b058eb31d24c6ea1980524c61470d6b 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -109,11 +109,11 @@ export declare interface TextDecorationOptions { /** * The decoration type. * - * @type { TextDecorationType } + * @type { TextDecorationType | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - type: TextDecorationType; + type: TextDecorationType | undefined; /** * Sets the color of decoration. * @@ -3467,11 +3467,11 @@ export declare interface ShadowOptions { /** * Blur radius of the shadow. * - * @type { number | Resource } + * @type { number | Resource | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - radius: number | Resource; + radius: number | Resource | undefined; /** * Shadow type. *
Default value: **COLOR**. diff --git a/api/arkui/component/styledString.static.d.ets b/api/arkui/component/styledString.static.d.ets index 519302f58fb8643637219d75d5ed05c4f7928809..d95552ba425b699ec206247434f1e99ad8a259c0 100644 --- a/api/arkui/component/styledString.static.d.ets +++ b/api/arkui/component/styledString.static.d.ets @@ -466,11 +466,11 @@ export declare interface DecorationStyleInterface { /** * The type value of the decoration property object. * - * @type { TextDecorationType } + * @type { TextDecorationType | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - type: TextDecorationType; + type: TextDecorationType | undefined; /** * The color value of the decoration property object. * diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets index 1c4e93d13272d778e6007d240d05c27e6aab1bed..156e2b6f7361b431d6773e1b330d91370cdb0cf9 100644 --- a/api/arkui/component/text.static.d.ets +++ b/api/arkui/component/text.static.d.ets @@ -39,12 +39,12 @@ export declare interface TextOverflowOptions { * Text overflow option. * * Anonymous Object Rectification. - * @type { TextOverflow } + * @type { TextOverflow | undefined } * @default TextOverflow.Clip * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - overflow: TextOverflow; + overflow: TextOverflow | undefined; } /** * TextAttribute. @@ -62,8 +62,8 @@ export declare interface TextAttribute extends CommonMethod { *
It is only effective for the Text component, not for its child components. *

* - * @param { Font } fontValue - the text font size and weight and family and style. - * @param { FontSettingOptions } options - font setting options. + * @param { Font | undefined } fontValue - the text font size and weight and family and style. + * @param { FontSettingOptions | undefined } options - font setting options. * @returns { TextAttribute } The attribute of the text. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -252,7 +252,7 @@ export declare interface TextAttribute extends CommonMethod { * where the text and images are displayed in scrolling mode in a line. *

* - * @param { TextOverflowOptions } options - Text overflow options. + * @param { TextOverflowOptions | undefined } options - Text overflow options. * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -295,7 +295,7 @@ export declare interface TextAttribute extends CommonMethod { *
The style parameter cannot be used in widgets. *

* - * @param { DecorationStyleInterface } value - Default value is { type: TextDecorationType.None, color: Color.Black, style: TextDecorationStyle.SOLID }. + * @param { DecorationStyleInterface | undefined } value - Default value is { type: TextDecorationType.None, color: Color.Black, style: TextDecorationStyle.SOLID }. * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -366,7 +366,7 @@ export declare interface TextAttribute extends CommonMethod { *
This API does not work with the fill attribute or coloring strategy. *

* - * @param { ShadowOptions | Array } value - The shadow options. + * @param { ShadowOptions | Array | undefined } value - The shadow options. * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -549,7 +549,7 @@ export declare interface TextAttribute extends CommonMethod { * *

* - * @param { TextDataDetectorConfig } config - The config of text data detector. + * @param { TextDataDetectorConfig | undefined } config - The config of text data detector. * @returns { TextAttribute } The attribute of the text. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 diff --git a/api/arkui/component/textCommon.static.d.ets b/api/arkui/component/textCommon.static.d.ets index dd08c7621b1f84d081761164129f2c2933baf9c1..455d1fa4894975b0caf4caeef09a335ebedb8dca 100644 --- a/api/arkui/component/textCommon.static.d.ets +++ b/api/arkui/component/textCommon.static.d.ets @@ -78,11 +78,11 @@ export declare interface TextDataDetectorConfig { /** * Text data detector types. * - * @type { TextDataDetectorType[] } + * @type { TextDataDetectorType[] | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - types: TextDataDetectorType[]; + types: TextDataDetectorType[] | undefined; /** * Text data detect result callback. * @@ -757,19 +757,19 @@ export declare interface EditMenuOptions { /** * Passes the default menu, invokes before every display to generate a menu for triggering click events. * - * @type { OnCreateMenuCallback } + * @type { OnCreateMenuCallback | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onCreateMenu: OnCreateMenuCallback; + onCreateMenu: OnCreateMenuCallback | undefined; /** * Invoke upon clicking an item, capable of intercepting the default system menu execution behavior. * - * @type { OnMenuItemClickCallback } + * @type { OnMenuItemClickCallback | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onMenuItemClick: OnMenuItemClickCallback; + onMenuItemClick: OnMenuItemClickCallback | undefined; } /** * Defines the font decoration result.