From 1f6ca1674c9059b082c692cd1e15bd80fe5035d3 Mon Sep 17 00:00:00 2001 From: l00913061 Date: Thu, 4 Sep 2025 21:45:01 +0800 Subject: [PATCH] builderupdate Signed-off-by: l00913061 --- api/arkui/component/interop.static.d.ets | 26 +++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/api/arkui/component/interop.static.d.ets b/api/arkui/component/interop.static.d.ets index 3bffbf685c..f8a175ef54 100644 --- a/api/arkui/component/interop.static.d.ets +++ b/api/arkui/component/interop.static.d.ets @@ -111,8 +111,32 @@ export declare function compatibleWrappedBuilder(builder: Any, ...args: FixedArr * Transfer compatible Builder * * @param { T } builder - the source builder - * @returns { ESValue } the comaptible builder + * @returns { ESValue } the compatible builder * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ export declare function transferCompatibleBuilder(@Builder builder: T): ESValue; + +/** + * Defines the source builder for updating compatible builder. + * + * @typedef { function } CompatibleUpdatableBuilder + * @param { T } arg - the argument of the source builder + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +@Builder +export type CompatibleUpdatableBuilder = (arg: T) => void; + +/** + * Transfer compatible and updatable Builder + * + * @param { CompatibleUpdatableBuilder } builder - the source builder + * @returns { ESValue } the compatible builder + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare function transferCompatibleUpdatableBuilder( + builder: CompatibleUpdatableBuilder +): ESValue; + \ No newline at end of file -- Gitee