diff --git a/BUILD.gn b/BUILD.gn index 735000f5be05504a381da91de572826d9c6d021b..596137a58ddb406f8e0a47462b035c6805accade 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -29,6 +29,7 @@ ohos_copy("ets_internal_api") { ohos_copy("ets_component") { sources = [ + "api/@internal/component/ets/ability_component.d.ts", "api/@internal/component/ets/action_sheet.d.ts", "api/@internal/component/ets/alert_dialog.d.ts", "api/@internal/component/ets/alphabet_indexer.d.ts", diff --git a/api/@internal/component/ets/ability_component.d.ts b/api/@internal/component/ets/ability_component.d.ts index 43524e4129ae0b9472a4f6abd95c4f1e001fffab..7260ce8a8920e4f1c3dac3d8eb68d810fea44f4d 100644 --- a/api/@internal/component/ets/ability_component.d.ts +++ b/api/@internal/component/ets/ability_component.d.ts @@ -17,12 +17,14 @@ import { Want } from '../../../ability/want'; /** * Provides an interface for the ability component. * @since 9 + * @systemapi */ interface AbilityComponentInterface { /** * Construct the ability component. * Called when the ability component is used. * @since 9 + * @systemapi */ (want: Want): AbilityComponentAttribute; } @@ -30,16 +32,19 @@ interface AbilityComponentInterface { /** * Defines the attribute functions of ability component. * @since 9 + * @systemapi */ declare class AbilityComponentAttribute extends CommonMethod { /** * Called when the component connected with ability. * @since 9 + * @systemapi */ onConnect(callback: () => void): AbilityComponentAttribute; /** * Called when the component onDisconnected with ability. * @since 9 + * @systemapi */ onDisconnect(callback: () => void): AbilityComponentAttribute; }