From 5cb58ce1dcfcf13d0906e3f11f0eabe7b8f7efaf Mon Sep 17 00:00:00 2001 From: liangZ15 Date: Wed, 16 Mar 2022 03:25:39 +0000 Subject: [PATCH] fixed 1ac5726 from https://gitee.com/liangZ15/interface_sdk-js_1/pulls/1156 update api/@ohos.update.d.ts. Signed-off-by: liangZ15 --- api/@ohos.update.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/@ohos.update.d.ts b/api/@ohos.update.d.ts index 0620034b5d..cc2aede4b3 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 { /** @@ -373,12 +373,12 @@ declare namespace update { applyNewVersion(): Promise; /** - * Reboot to clean cache. + * Reboot and clean user data. * * @since 6 */ - rebootAndCleanCache(callback: AsyncCallback): void; - rebootAndCleanCache(): Promise; + rebootAndCleanUserData(callback: AsyncCallback): void; + rebootAndCleanUserData(): Promise; /** * verify update package. -- Gitee