From 7ee3926c7da3a56be28b2c156a02c22b9005d975 Mon Sep 17 00:00:00 2001 From: zzz701 Date: Wed, 25 Jun 2025 10:46:22 +0800 Subject: [PATCH] =?UTF-8?q?AsyncCallback=20Error=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E5=8F=AF=E9=80=89=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzz701 --- 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