From 2ec1698332bc25f7478d6b726c1728bbb1d1f7c0 Mon Sep 17 00:00:00 2001 From: nadolskyanton Date: Fri, 11 Jul 2025 16:47:49 +0300 Subject: [PATCH] Fix promise type Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICKUYR Signed-off-by: nadolskyanton --- frameworks/ets/ani/ets/@ohos.telephony.data.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/ets/ani/ets/@ohos.telephony.data.ets b/frameworks/ets/ani/ets/@ohos.telephony.data.ets index ea0b1f35..accdb026 100644 --- a/frameworks/ets/ani/ets/@ohos.telephony.data.ets +++ b/frameworks/ets/ani/ets/@ohos.telephony.data.ets @@ -37,8 +37,8 @@ export default namespace data { let p1 = taskpool.execute(nativeGetCellularDataState) p1.then((content: NullishType) => { callback(new BusinessError(), content as DataConnectState); - }, (err: BusinessError): void => { - callback(err, DataConnectState.DATA_STATE_UNKNOWN); + }, (err: Error): void => { + callback(err as BusinessError, DataConnectState.DATA_STATE_UNKNOWN); }); } -- Gitee