From 69e1ea27fb4317f90220857be627f98898261015 Mon Sep 17 00:00:00 2001 From: lidalei Date: Thu, 4 Aug 2022 11:01:32 +0800 Subject: [PATCH] solve problems related to systemapi Signed-off-by: lidalei --- api/@internal/component/ets/ability_component.d.ts | 11 +++++++++++ api/@internal/component/ets/animator.d.ts | 11 +++++++++++ api/@internal/component/ets/calendar.d.ts | 11 +++++++++++ api/@internal/component/ets/common_ts_ets_api.d.ts | 2 -- api/@internal/component/ets/form_component.d.ts | 11 +++++++++++ api/@internal/component/ets/plugin_component.d.ts | 11 +++++++++++ api/@internal/component/ets/remote_window.d.ts | 11 +++++++++++ 7 files changed, 66 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/ability_component.d.ts b/api/@internal/component/ets/ability_component.d.ts index 78640db90c..583a91dffe 100644 --- a/api/@internal/component/ets/ability_component.d.ts +++ b/api/@internal/component/ets/ability_component.d.ts @@ -48,5 +48,16 @@ declare class AbilityComponentAttribute extends CommonMethod void): AbilityComponentAttribute; } +/** + * Define the interface of AbilityComponent. + * @since 9 + * @systemapi + */ declare const AbilityComponent: AbilityComponentInterface; + +/** + * Define the attribute functions of AbilityComponent. + * @since 9 + * @systemapi + */ declare const AbilityComponentInstance: AbilityComponentAttribute; diff --git a/api/@internal/component/ets/animator.d.ts b/api/@internal/component/ets/animator.d.ts index ff253c2eba..7cf2a88e5b 100644 --- a/api/@internal/component/ets/animator.d.ts +++ b/api/@internal/component/ets/animator.d.ts @@ -188,5 +188,16 @@ declare class AnimatorAttribute extends CommonMethod { onFrame(event: (value: number) => void): AnimatorAttribute; } +/** + * Define the interface of Animator. + * @since 7 + * @systemapi + */ declare const Animator: AnimatorInterface; + +/** + * Define the attribute functions of Animator. + * @since 7 + * @systemapi + */ declare const AnimatorInstance: AnimatorAttribute; diff --git a/api/@internal/component/ets/calendar.d.ts b/api/@internal/component/ets/calendar.d.ts index 63569d8107..dc0990bace 100644 --- a/api/@internal/component/ets/calendar.d.ts +++ b/api/@internal/component/ets/calendar.d.ts @@ -631,5 +631,16 @@ declare class CalendarAttribute { ): CalendarAttribute; } +/** + * Define the interface of Calendar. + * @since 7 + * @systemapi + */ declare const Calendar: CalendarInterface; + +/** + * Define the attribute functions of Calendar. + * @since 7 + * @systemapi + */ declare const CalendarInstance: CalendarAttribute; diff --git a/api/@internal/component/ets/common_ts_ets_api.d.ts b/api/@internal/component/ets/common_ts_ets_api.d.ts index 1416b44d75..5c7e29cbf9 100644 --- a/api/@internal/component/ets/common_ts_ets_api.d.ts +++ b/api/@internal/component/ets/common_ts_ets_api.d.ts @@ -420,7 +420,6 @@ declare class Environment { /** * Constructor. * @since 7 - * @systemapi * @hide */ constructor(); @@ -457,7 +456,6 @@ declare class PersistentStorage { /** * Constructor parameters. * @since 7 - * @systemapi * @hide */ constructor(appStorage: AppStorage, storage: Storage); diff --git a/api/@internal/component/ets/form_component.d.ts b/api/@internal/component/ets/form_component.d.ts index 60ef195aa7..aaa1808de0 100644 --- a/api/@internal/component/ets/form_component.d.ts +++ b/api/@internal/component/ets/form_component.d.ts @@ -147,5 +147,16 @@ declare class FormComponentAttribute extends CommonMethod void): FormComponentAttribute; } +/** + * Define the interface of FormComponent. + * @since 7 + * @systemapi + */ declare const FormComponent: FormComponentInterface; + +/** + * Define the attribute functions of FormComponent. + * @since 7 + * @systemapi + */ declare const FormComponentInstance: FormComponentAttribute; diff --git a/api/@internal/component/ets/plugin_component.d.ts b/api/@internal/component/ets/plugin_component.d.ts index 08ddae847e..884ceb25d9 100644 --- a/api/@internal/component/ets/plugin_component.d.ts +++ b/api/@internal/component/ets/plugin_component.d.ts @@ -68,5 +68,16 @@ declare class PluginComponentAttribute extends CommonMethod void): PluginComponentAttribute; } +/** + * Define the interface of PluginComponent. + * @since 9 + * @systemapi + */ declare const PluginComponent: PluginComponentInterface; + +/** + * Define the attribute functions of PluginComponent. + * @since 9 + * @systemapi + */ declare const PluginComponentInstance: PluginComponentAttribute; diff --git a/api/@internal/component/ets/remote_window.d.ts b/api/@internal/component/ets/remote_window.d.ts index 9f6c2cbd23..43373b3042 100644 --- a/api/@internal/component/ets/remote_window.d.ts +++ b/api/@internal/component/ets/remote_window.d.ts @@ -69,5 +69,16 @@ interface RemoteWindowInterface { */ declare class RemoteWindowAttribute extends CommonMethod {} +/** + * Define the interface of RemoteWindow. + * @since 9 + * @systemapi + */ declare const RemoteWindow: RemoteWindowInterface; + +/** + * Define the attribute functions of RemoteWindow. + * @since 9 + * @systemapi + */ declare const RemoteWindowInstance: RemoteWindowAttribute; -- Gitee