From 28b19d5078f3d2d7bbff34d6c409bc59b8084328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=9D=E4=BF=8A?= Date: Mon, 8 Jul 2024 17:32:32 +0800 Subject: [PATCH] =?UTF-8?q?0710=20=20Signed-off-by:=20=E5=B8=9D=E4=BF=8A?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.ability.ability.d.ts | 1 + api/@ohos.ability.featureAbility.d.ts | 3 +++ api/@ohos.app.ability.Want.d.ts | 3 +++ api/@ohos.app.ability.abilityDelegatorRegistry.d.ts | 4 ++++ api/@ohos.app.ability.common.d.ts | 11 +++++++++++ api/@ohos.app.ability.wantAgent.d.ts | 3 +++ api/@ohos.wantAgent.d.ts | 1 + api/application/AbilityMonitor.d.ts | 6 ++++++ 8 files changed, 32 insertions(+) diff --git a/api/@ohos.ability.ability.d.ts b/api/@ohos.ability.ability.d.ts index 0fe5e2d63..77101a34e 100644 --- a/api/@ohos.ability.ability.d.ts +++ b/api/@ohos.ability.ability.d.ts @@ -113,6 +113,7 @@ declare namespace ability { * StartAbilityParameter secondary module.Define the Start Ability parameter, which can be used as * an input parameter to call [startAbility] to start the specified Ability. * + * @typedef { _StartAbilityParameter } * @syscap SystemCapability.Ability.AbilityRuntime.FAModel * @FAModelOnly * @since 9 diff --git a/api/@ohos.ability.featureAbility.d.ts b/api/@ohos.ability.featureAbility.d.ts index f7e090b6b..5c9e8c779 100644 --- a/api/@ohos.ability.featureAbility.d.ts +++ b/api/@ohos.ability.featureAbility.d.ts @@ -434,6 +434,7 @@ declare namespace featureAbility { * application-specific resources, request and verification permissions. * Can only be obtained through the ability. * + * @typedef { _Context } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @FAModelOnly * @since 9 @@ -443,6 +444,7 @@ declare namespace featureAbility { /** * Defines an AppVersionInfo object. * + * @typedef { _AppVersionInfo } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @FAModelOnly * @since 9 @@ -452,6 +454,7 @@ declare namespace featureAbility { /** * This process information about an application. * + * @typedef { _ProcessInfo } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @FAModelOnly * @since 9 diff --git a/api/@ohos.app.ability.Want.d.ts b/api/@ohos.app.ability.Want.d.ts index 315ef9b50..fe7cf0882 100644 --- a/api/@ohos.app.ability.Want.d.ts +++ b/api/@ohos.app.ability.Want.d.ts @@ -57,6 +57,7 @@ export default class Want { /** * bundle name * + * @type { ?string } * @syscap SystemCapability.Ability.AbilityBase * @crossplatform * @atomicservice @@ -81,6 +82,7 @@ export default class Want { /** * ability name * + * @type { ?string } * @syscap SystemCapability.Ability.AbilityBase * @crossplatform * @atomicservice @@ -233,6 +235,7 @@ export default class Want { /** * The description of an module name in an want. * + * @type { ?string } * @syscap SystemCapability.Ability.AbilityBase * @crossplatform * @atomicservice diff --git a/api/@ohos.app.ability.abilityDelegatorRegistry.d.ts b/api/@ohos.app.ability.abilityDelegatorRegistry.d.ts index 743b334e8..d502327df 100644 --- a/api/@ohos.app.ability.abilityDelegatorRegistry.d.ts +++ b/api/@ohos.app.ability.abilityDelegatorRegistry.d.ts @@ -260,6 +260,7 @@ declare namespace abilityDelegatorRegistry { /** * A global test utility interface used for adding AbilityMonitor objects and control lifecycle states of abilities. * + * @typedef { _AbilityDelegator } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -283,6 +284,7 @@ declare namespace abilityDelegatorRegistry { /** * Store unit testing-related parameters, including test case names, and test runner name. * + * @typedef { _AbilityDelegatorArgs } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -309,6 +311,7 @@ declare namespace abilityDelegatorRegistry { * Provide methods for matching monitored Ability objects that meet specified conditions. * The most recently matched Ability objects will be saved in the AbilityMonitor object. * + * @typedef { _AbilityMonitor } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -325,6 +328,7 @@ declare namespace abilityDelegatorRegistry { /** * A object that records the result of shell command executes. * + * @typedef { _ShellCmdResult } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since 11 diff --git a/api/@ohos.app.ability.common.d.ts b/api/@ohos.app.ability.common.d.ts index b241fbe31..9bcd0a6e1 100644 --- a/api/@ohos.app.ability.common.d.ts +++ b/api/@ohos.app.ability.common.d.ts @@ -84,6 +84,7 @@ declare namespace common { /** * The context of an ability. It allows access to ability-specific resources. * + * @typedef { _UIAbilityContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @crossplatform @@ -110,6 +111,7 @@ declare namespace common { /** * The context of an abilityStage. It allows access to abilityStage-specific resources. * + * @typedef { _AbilityStageContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @crossplatform @@ -136,6 +138,7 @@ declare namespace common { /** * The context of an application. It allows access to application-specific resources. * + * @typedef { _ApplicationContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @crossplatform @@ -162,6 +165,7 @@ declare namespace common { /** * The base context of 'app.Context' for FA Mode or 'application.Context' for Stage Mode. * + * @typedef { _BaseContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @crossplatform @@ -191,6 +195,7 @@ declare namespace common { * The base context of an ability or an application. It allows access to * application-specific resources. * + * @typedef { _Context.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @crossplatform @@ -228,6 +233,7 @@ declare namespace common { * The context of form extension. It allows access to * formExtension-specific resources. * + * @typedef { _FormExtensionContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @atomicservice @@ -239,6 +245,7 @@ declare namespace common { * The context of service extension. It allows access to * serviceExtension-specific resources. * + * @typedef { _ServiceExtensionContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @StageModelOnly @@ -318,6 +325,7 @@ declare namespace common { * The context of UI extension. It allows access to * UIExtension-specific resources. * + * @typedef { _UIExtensionContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @since 10 @@ -328,6 +336,7 @@ declare namespace common { * The context of auto fill extension. It allows access to * AutoFillExtension-specific resources. * + * @typedef { _AutoFillExtensionContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @StageModelOnly @@ -358,6 +367,7 @@ declare namespace common { /** * The class of auto startup callback. * + * @typedef { _AutoStartupCallback } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @StageModelOnly @@ -379,6 +389,7 @@ declare namespace common { /** * The context of an embeddable UIAbility. * + * @typedef { _EmbeddableUIAbilityContext.default } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice diff --git a/api/@ohos.app.ability.wantAgent.d.ts b/api/@ohos.app.ability.wantAgent.d.ts index 0cac1caf5..84d6806e7 100644 --- a/api/@ohos.app.ability.wantAgent.d.ts +++ b/api/@ohos.app.ability.wantAgent.d.ts @@ -451,6 +451,7 @@ declare namespace wantAgent { /** * Provides the information required for triggering a WantAgent. * + * @typedef { _TriggerInfo } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -459,6 +460,7 @@ declare namespace wantAgent { /** * Provides the information required for triggering a WantAgent. * + * @typedef { _WantAgentInfo } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ @@ -468,6 +470,7 @@ declare namespace wantAgent { /** * WantAgent object. * + * @typedef { object } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ diff --git a/api/@ohos.wantAgent.d.ts b/api/@ohos.wantAgent.d.ts index c6fe5a57c..b78cce49d 100644 --- a/api/@ohos.wantAgent.d.ts +++ b/api/@ohos.wantAgent.d.ts @@ -442,6 +442,7 @@ declare namespace wantAgent { /** * WantAgent object. * + * @typedef { object } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 7 */ diff --git a/api/application/AbilityMonitor.d.ts b/api/application/AbilityMonitor.d.ts index 643ff4f9e..95720ad8a 100644 --- a/api/application/AbilityMonitor.d.ts +++ b/api/application/AbilityMonitor.d.ts @@ -116,6 +116,7 @@ export interface AbilityMonitor { /** * Called back when the ability is created for initialization. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -139,6 +140,7 @@ export interface AbilityMonitor { /** * Called back when the state of the ability changes to foreground. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -162,6 +164,7 @@ export interface AbilityMonitor { /** * Called back when the state of the ability changes to background. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -185,6 +188,7 @@ export interface AbilityMonitor { /** * Called back before the ability is destroyed. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice @@ -224,6 +228,7 @@ export interface AbilityMonitor { /** * Called back when an ability window stage is restored. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since 11 @@ -246,6 +251,7 @@ export interface AbilityMonitor { /** * Called back when an ability window stage is destroyed. * + * @type { ?function }. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform * @atomicservice