From 3c7afa9bebc233ddee05fc30f8b69c1bbc8b9a2c Mon Sep 17 00:00:00 2001 From: ltdong Date: Wed, 29 Dec 2021 18:51:36 +0800 Subject: [PATCH] delete @system.storage.d.ts Signed-off-by: ltdong --- api/common/@system.storage.d.ts | 190 -------------------------- api/liteWearable/@system.storage.d.ts | 150 -------------------- api/phone/@system.storage.d.ts | 160 ---------------------- api/smartVision/@system.storage.d.ts | 159 --------------------- api/tablet/@system.storage.d.ts | 145 -------------------- api/tv/@system.storage.d.ts | 145 -------------------- api/wearable/@system.storage.d.ts | 145 -------------------- 7 files changed, 1094 deletions(-) delete mode 100644 api/common/@system.storage.d.ts delete mode 100644 api/liteWearable/@system.storage.d.ts delete mode 100644 api/phone/@system.storage.d.ts delete mode 100644 api/smartVision/@system.storage.d.ts delete mode 100644 api/tablet/@system.storage.d.ts delete mode 100644 api/tv/@system.storage.d.ts delete mode 100644 api/wearable/@system.storage.d.ts diff --git a/api/common/@system.storage.d.ts b/api/common/@system.storage.d.ts deleted file mode 100644 index 91b6155ca6..0000000000 --- a/api/common/@system.storage.d.ts +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export interface GetStorageOptions { - /** - * Content index. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. - * If this parameter is not specified, an empty string is returned. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export interface SetStorageOptions { - /** - * Index of the stored content to be modified. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export interface ClearStorageOptions { - /** - * Called when the stored content is cleared successfully. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export interface DeleteStorageOptions { - /** - * Content index. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export default class Storage { - /** - * Reads the stored content. - * @param options Options. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ - static get(options: GetStorageOptions): void; - - /** - * Modifies the stored content. - * @param options Options. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ - static set(options: SetStorageOptions): void; - - /** - * Clears the stored content. - * @param options Options. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ - static clear(options?: ClearStorageOptions): void; - - /** - * Deletes the stored content. - * @param options Options. - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ - static delete(options: DeleteStorageOptions): void; -} diff --git a/api/liteWearable/@system.storage.d.ts b/api/liteWearable/@system.storage.d.ts deleted file mode 100644 index 3c75bd00b6..0000000000 --- a/api/liteWearable/@system.storage.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @Syscap SysCap.ACE.UIEngineLite - */ -export default class Storage { - /** - * Reads the stored content. - * @param options Options. - */ - static get(options: { - /** - * Content index. - * The value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. - * If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: string) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Modifies the stored content. - * @param options Options. - */ - static set(options: { - /** - * Index of the stored content to be modified. - * The value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Target storage content. - * If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Clears the stored content. - * @param options Options. - */ - static clear(options?: { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Deletes the stored content. - * @param options Options. - */ - static delete(options: { - /** - * Content index. - * The value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/phone/@system.storage.d.ts b/api/phone/@system.storage.d.ts deleted file mode 100644 index abb07c05e3..0000000000 --- a/api/phone/@system.storage.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface GetStorageOptions { - /** - * Content index. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. - * If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -export interface SetStorageOptions { - /** - * Index of the stored content to be modified. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable, liteWearable, smartVision - */ -export interface ClearStorageOptions { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -export interface DeleteStorageOptions { - /** - * Content index. - * For liteWearable and smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Storage { - /** - * Reads the stored content. - * @param options Options. - */ - static get(options: GetStorageOptions): void; - - /** - * Modifies the stored content. - * @param options Options. - */ - static set(options: SetStorageOptions): void; - - /** - * Clears the stored content. - * @param options Options. - */ - static clear(options?: ClearStorageOptions): void; - - /** - * Deletes the stored content. - * @param options Options. - */ - static delete(options: DeleteStorageOptions): void; -} diff --git a/api/smartVision/@system.storage.d.ts b/api/smartVision/@system.storage.d.ts deleted file mode 100644 index 64b50405a5..0000000000 --- a/api/smartVision/@system.storage.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface GetStorageOptions { - /** - * Content index. - * For smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. - * If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -export interface SetStorageOptions { - /** - * Index of the stored content to be modified. - * For smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -export interface ClearStorageOptions { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -export interface DeleteStorageOptions { - /** - * Content index. - * For smartVision, the value contains a maximum of 32 characters and cannot contain special characters such as \/"*+,:;<=>?[]|\x7F. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -/** - * @Syscap SysCap.ACE.UIEngineLite - */ -export default class Storage { - /** - * Reads the stored content. - * @param options Options. - */ - static get(options: GetStorageOptions): void; - - - /** - * Modifies the stored content. - * @param options Options. - */ - static set(options: SetStorageOptions): void; - - /** - * Clears the stored content. - * @param options Options. - */ - static clear(options?: ClearStorageOptions): void; - - /** - * Deletes the stored content. - * @param options Options. - */ - static delete(options: DeleteStorageOptions): void; - -} diff --git a/api/tablet/@system.storage.d.ts b/api/tablet/@system.storage.d.ts deleted file mode 100644 index 0a4c814410..0000000000 --- a/api/tablet/@system.storage.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Storage { - /** - * Reads the stored content. - * @param options - */ - static get(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Modifies the stored content. - * @param options - */ - static set(options: { - /** - * Index of the stored content to be modified. - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Clears the stored content. - * @param options - */ - static clear(options?: { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Deletes the stored content. - * @param options - */ - static delete(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/tv/@system.storage.d.ts b/api/tv/@system.storage.d.ts deleted file mode 100644 index 0a4c814410..0000000000 --- a/api/tv/@system.storage.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Storage { - /** - * Reads the stored content. - * @param options - */ - static get(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Modifies the stored content. - * @param options - */ - static set(options: { - /** - * Index of the stored content to be modified. - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Clears the stored content. - * @param options - */ - static clear(options?: { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Deletes the stored content. - * @param options - */ - static delete(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/wearable/@system.storage.d.ts b/api/wearable/@system.storage.d.ts deleted file mode 100644 index 0a4c814410..0000000000 --- a/api/wearable/@system.storage.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Storage { - /** - * Reads the stored content. - * @param options - */ - static get(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Default value returned when the key does not exist. If this parameter is not specified, an empty string is returned. - * @since 3 - */ - default?: string; - - /** - * Called when the stored content is read successfully. - * @since 3 - */ - success?: (data: any) => void; - - /** - * Called when the stored content fails to be read. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Modifies the stored content. - * @param options - */ - static set(options: { - /** - * Index of the stored content to be modified. - * @since 3 - */ - key: string; - - /** - * Target storage content. If the content is an empty string, the data item with the key as the index will be deleted. - * @since 3 - */ - value: string; - - /** - * Called when the stored content is modified successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be modified. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Clears the stored content. - * @param options - */ - static clear(options?: { - /** - * Called when the stored content is cleared successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be cleared. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; - - /** - * Deletes the stored content. - * @param options - */ - static delete(options: { - /** - * Content index. - * @since 3 - */ - key: string; - - /** - * Called when the stored content is deleted successfully. - * @since 3 - */ - success?: () => void; - - /** - * Called when the stored content fails to be deleted. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} -- Gitee