From ffdfc6d0447d9e0b17cf9a2e97b2705d8e09a10f Mon Sep 17 00:00:00 2001 From: zhushangyuan Date: Fri, 13 Jun 2025 15:11:24 +0800 Subject: [PATCH] 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