From 106819bce6740f20c766a6ac3798ad73e4f2656e Mon Sep 17 00:00:00 2001 From: PaDoBoo Date: Fri, 15 Apr 2022 17:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9has=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E5=92=8Coff=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E4=B8=BA?= =?UTF-8?q?=E5=8F=AF=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: PaDoBoo --- api/@ohos.data.preferences.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.data.preferences.d.ts b/api/@ohos.data.preferences.d.ts index 000599ed5d..2d5a313f68 100644 --- a/api/@ohos.data.preferences.d.ts +++ b/api/@ohos.data.preferences.d.ts @@ -108,7 +108,7 @@ declare namespace preferences { * @throws BusinessError if invoked failed * @since 9 */ - has(key: string, callback: AsyncCallback): boolean; + has(key: string, callback: AsyncCallback): void; has(key: string): Promise; /** @@ -177,7 +177,7 @@ declare namespace preferences { * @throws BusinessError if invoked failed * @since 9 */ - off(type: 'change', callback: Callback<{ key: string }>): void; + off(type: 'change', callback?: Callback<{ key: string }>): void; } /** -- Gitee