From f88d49faebb9175c859be382b8054b096337acf5 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Fri, 29 Aug 2025 09:53:31 +0800 Subject: [PATCH] fix method 0829 Signed-off-by: zhangzezhong --- api/@ohos.app.ability.autoFillManager.d.ts | 24 ++++++++++++--- api/@ohos.application.testRunner.d.ts | 22 +++++++++++--- api/ability/connectOptions.d.ts | 34 ++++++++++++++++++---- 3 files changed, 66 insertions(+), 14 deletions(-) diff --git a/api/@ohos.app.ability.autoFillManager.d.ts b/api/@ohos.app.ability.autoFillManager.d.ts index 59c3caf071..482bc03ee5 100644 --- a/api/@ohos.app.ability.autoFillManager.d.ts +++ b/api/@ohos.app.ability.autoFillManager.d.ts @@ -59,7 +59,7 @@ declare namespace autoFillManager { * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnSuccessFn = () => void; @@ -71,7 +71,7 @@ declare namespace autoFillManager { * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnFailureFn = () => void; @@ -102,6 +102,14 @@ declare namespace autoFillManager { * @stagemodelonly * @since 11 */ + /** + * Called when auto save request is successfully handled. + * + * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore + * @stagemodelonly + * @atomicservice + * @since 12 + */ /** * Called when auto save request is successfully handled. * @@ -109,7 +117,7 @@ declare namespace autoFillManager { * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onSuccess: OnSuccessFn; @@ -121,6 +129,14 @@ declare namespace autoFillManager { * @stagemodelonly * @since 11 */ + /** + * Called when auto save request is failed to be handled. + * + * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore + * @stagemodelonly + * @atomicservice + * @since 12 + */ /** * Called when auto save request is failed to be handled. * @@ -128,7 +144,7 @@ declare namespace autoFillManager { * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @stagemodelonly * @atomicservice - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onFailure: OnFailureFn; diff --git a/api/@ohos.application.testRunner.d.ts b/api/@ohos.application.testRunner.d.ts index ebd8837d3f..3490343ff7 100644 --- a/api/@ohos.application.testRunner.d.ts +++ b/api/@ohos.application.testRunner.d.ts @@ -24,7 +24,7 @@ * @typedef { Function } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnPrepareFn = () => void; @@ -35,7 +35,7 @@ type OnPrepareFn = () => void; * @typedef { Function } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnRunFn = () => void; @@ -65,13 +65,20 @@ interface TestRunner { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 8 */ + /** + * Prepare the unit testing environment for running test cases. + * + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @atomicservice + * @since 11 + */ /** * Prepare the unit testing environment for running test cases. * * @type { OnPrepareFn } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onPrepare: OnPrepareFn; @@ -82,13 +89,20 @@ interface TestRunner { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 8 */ + /** + * Run all test cases. + * + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @atomicservice + * @since 11 + */ /** * Run all test cases. * * @typedef { OnRunFn } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice - * @since arkts {'1.1':'11', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onRun: OnRunFn; diff --git a/api/ability/connectOptions.d.ts b/api/ability/connectOptions.d.ts index 6206ab6a25..296e26bac8 100644 --- a/api/ability/connectOptions.d.ts +++ b/api/ability/connectOptions.d.ts @@ -28,7 +28,7 @@ import rpc from './../@ohos.rpc'; * @param { ElementName } elementName - The ohos.bundleManager.ElementName object of the service ability * @param { rpc.IRemoteObject } remote - The remote object instance * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnConnectFn = (elementName: ElementName, remote: rpc.IRemoteObject) => void; @@ -39,7 +39,7 @@ type OnConnectFn = (elementName: ElementName, remote: rpc.IRemoteObject) => void * typedef { Function } * @param { ElementName } elementName - The ohos.bundleManager.ElementName object of the service ability * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnDisconnectFn = (elementName: ElementName) => void; @@ -50,7 +50,7 @@ type OnDisconnectFn = (elementName: ElementName) => void; * @typedef { Function } * @param { int } code - The error code of the failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'7', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ type OnFailedFn = (code: int) => void; @@ -73,12 +73,20 @@ export interface ConnectOptions { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 7 */ + /** + * The callback interface was connect successfully. + * + * @param { ElementName } elementName - The ohos.bundleManager.ElementName object of the service ability + * @param { rpc.IRemoteObject } remote - The remote object instance + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @since 12 + */ /** * The callback interface was connect successfully. * * @type { OnConnectFn } * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onConnect: OnConnectFn; @@ -90,22 +98,36 @@ export interface ConnectOptions { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 7 */ + /** + * The callback interface was disconnect successfully. + * + * @param { ElementName } elementName - The ohos.bundleManager.ElementName object of the service ability + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @since 12 + */ /** * The callback interface was disconnect successfully. * * @type { OnDisconnectFn } * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'12', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onDisconnect: OnDisconnectFn; + /** + * The callback interface was connect failed. + * + * @param { number } code - The error code of the failed. + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @since 7 + */ /** * The callback interface was connect failed. * * @typedef { OnFailedFn } * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since arkts {'1.1':'7', '1.2':'20'} + * @since 20 * @arkts 1.1&1.2 */ onFailed: OnFailedFn; -- Gitee