diff --git a/BUILD.gn b/BUILD.gn index 4c6cde11597a94c38c1c42e432690c2dcaf5cb7d..b676c610ce48e7df5d690a28d0138a539f948df2 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -130,7 +130,6 @@ ohos_copy("common_api") { "api/common/@system.request.d.ts", "api/common/@system.router.d.ts", "api/common/@system.sensor.d.ts", - "api/common/@system.storage.d.ts", "api/common/@system.vibrator.d.ts", ] outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] diff --git a/api/common/@system.storage.d.ts b/api/common/@system.storage.d.ts deleted file mode 100644 index 91b6155ca60afae488c02822838adb646388bda5..0000000000000000000000000000000000000000 --- 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 3c75bd00b6cd76c15499d145f86b7081446421a7..0000000000000000000000000000000000000000 --- 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 abb07c05e327c96f4ca7923de6f918b3c519a980..0000000000000000000000000000000000000000 --- 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 64b50405a55233369b5e16ea65dd77b34011b78d..0000000000000000000000000000000000000000 --- 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 0a4c814410881f33a8ac681071831194e235c72d..0000000000000000000000000000000000000000 --- 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 0a4c814410881f33a8ac681071831194e235c72d..0000000000000000000000000000000000000000 --- 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 0a4c814410881f33a8ac681071831194e235c72d..0000000000000000000000000000000000000000 --- 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; -}