From 6525a2d2cce3fcc71ccaba54d08440fcd0036698 Mon Sep 17 00:00:00 2001 From: liangZ15 Date: Wed, 16 Mar 2022 09:28:29 +0000 Subject: [PATCH] fixed 4f9d130 from https://gitee.com/liangZ15/interface_sdk-js_1/pulls/1198 update api/@ohos.update.d.ts. Signed-off-by: liangZ15 --- api/@ohos.update.d.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/api/@ohos.update.d.ts b/api/@ohos.update.d.ts index 0620034b5d..d67b84af0f 100644 --- a/api/@ohos.update.d.ts +++ b/api/@ohos.update.d.ts @@ -18,9 +18,9 @@ import { AsyncCallback, BussinessError } from "./basic"; /** * A static class to do update for device. * - * @devices all * @since 6 - * @Syscap SystemCapability.Updater.Raw + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. */ declare namespace update { /** @@ -311,9 +311,9 @@ declare namespace update { /** * A static class to do update for the specified device. * - * @devices all * @since 6 - * @Syscap SystemCapability.Updater.Raw + * @syscap SystemCapability.Update.UpdateService + * @systemapi hide for inner use. */ export interface Updater { /** @@ -376,9 +376,18 @@ declare namespace update { * Reboot to clean cache. * * @since 6 + * @deprecated since 8 */ rebootAndCleanCache(callback: AsyncCallback): void; rebootAndCleanCache(): Promise; + + /** + * Reboot and clean user data. + * + * @since 8 + */ + rebootAndCleanUserData(callback: AsyncCallback): void; + rebootAndCleanUserData(): Promise; /** * verify update package. -- Gitee