diff --git a/api/@ohos.application.formInfo.d.ts b/api/@ohos.application.formInfo.d.ts index 46c60e52744dacff91de00ec1ec7d58cabe75a3b..d810c792a1cdd6df657af7e5b06dc951d5333292 100644 --- a/api/@ohos.application.formInfo.d.ts +++ b/api/@ohos.application.formInfo.d.ts @@ -501,21 +501,21 @@ declare namespace formInfo { * @since 9 * @syscap SystemCapability.Ability.Form */ - interface VisibilityType { + enum VisibilityType { /** * Indicates the type of the form is visible. - * Often used as a condition variable in function OnVisibilityChanged() to specify actions only on forms that are + * Often used as a condition variable in function OnVisibilityChange() to specify actions only on forms that are * changing to visible. * @since 9 */ - FORM_VISIBLE: number, + FORM_VISIBLE = 1, /** * Indicates the type of the form is invisible. - * Often used as a condition variable in function OnVisibilityChanged() to specify actions only on forms that are + * Often used as a condition variable in function OnVisibilityChange() to specify actions only on forms that are * changing to invisible. * @since 9 */ - FORM_INVISIBLE: number + FORM_INVISIBLE, } } export default formInfo; \ No newline at end of file