From 565bb92cc421fee85954f4c6ff0cca09a957832e Mon Sep 17 00:00:00 2001 From: jackd320 Date: Mon, 25 Jul 2022 09:31:18 +0000 Subject: [PATCH] Signed-off-by: jackd320 --- zh-cn/application-dev/reference/apis/js-apis-update.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-update.md b/zh-cn/application-dev/reference/apis/js-apis-update.md index 4d1aa7ac19..e60abcd85c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-update.md +++ b/zh-cn/application-dev/reference/apis/js-apis-update.md @@ -349,7 +349,7 @@ updater.getCurrentVersionInfo().then(info => { ### getCurrentVersionDescription -getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void; +getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void 获取当前版本描述文件。使用callback异步回调。 @@ -381,7 +381,7 @@ updater.getCurrentVersionDescription(descriptionOptions, (err, info) => { ### getCurrentVersionDescription -getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\>; +getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\> 获取当前版本描述文件。使用Promise异步回调。 @@ -419,7 +419,7 @@ updater.getCurrentVersionDescription(descriptionOptions).then(info => { ### getTaskInfo -getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise>; +getTaskInfo(callback: AsyncCallback\): void 获取升级任务信息。使用callback异步回调。 -- GitLab