From f9389dcbafe93c6e2a675cf1a253aa542c7efd23 Mon Sep 17 00:00:00 2001 From: zhushangyuan Date: Sun, 15 Jun 2025 10:57:18 +0800 Subject: [PATCH] async MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AsyncCallback变更可选参数 Signed-off-by: zhushangyuan --- api/@ohos.base.d.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.base.d.ets b/api/@ohos.base.d.ets index 39f9d3995f..0f7d42b99c 100644 --- a/api/@ohos.base.d.ets +++ b/api/@ohos.base.d.ets @@ -51,7 +51,7 @@ export type ErrorCallback = (err: T)=> void; * @atomicservice * @since 20 */ -export type AsyncCallback = (err: BusinessError, data: T)=> void; +export type AsyncCallback = (err: BusinessError | null, data: T | undefined)=> void; /** * Defines the error interface. -- Gitee