diff --git a/BUILD.gn b/BUILD.gn index f471b043f89b82d0074af068e51dc437704beda3..37b77bef16b609ea66093d6fe2bca4a087e4a7db 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 359bba529746a7a02d5220f5639ddec85edd40b7..78640db90c7f89d454b391cc98b4e62d9ac6c6d0 100644 --- a/api/@internal/component/ets/ability_component.d.ts +++ b/api/@internal/component/ets/ability_component.d.ts @@ -14,31 +14,36 @@ */ /** - * Provides an interface for the ability component. + * Provide 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; } /** - * Defines the attribute functions of ability component. + * Define the attribute functions of ability component. * @since 9 + * @systemapi */ declare class AbilityComponentAttribute extends CommonMethod { /** - * Called when the component connected with ability. + * Called when the component is connected to ability. * @since 9 + * @systemapi */ onConnect(callback: () => void): AbilityComponentAttribute; /** - * Called when the component onDisconnected with ability. + * Called when the component is disconnected. * @since 9 + * @systemapi */ onDisconnect(callback: () => void): AbilityComponentAttribute; }