diff --git a/api/arkui/component/interop.static.d.ets b/api/arkui/component/interop.static.d.ets index 3bffbf685c88c37437cdcd202f6fe8340b9e1209..f8a175ef543d6b5a2b11cae7bde1a43132a42c6c 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