From 44a30a8b66f6bad26e077974bba6707e9cbd218b Mon Sep 17 00:00:00 2001 From: igorlegalov Date: Mon, 30 Jun 2025 15:56:46 +0300 Subject: [PATCH] Remove NullishType alias Issue: https://gitee.com/open_harmony/dashboard?issue_id=ICH95I Testing: all pre-merge tests passed Signed-off-by: igorlegalov --- interfaces/ets/ani/hisysevent/ets/@ohos.hiSysEvent.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/ets/ani/hisysevent/ets/@ohos.hiSysEvent.ets b/interfaces/ets/ani/hisysevent/ets/@ohos.hiSysEvent.ets index 09f0304..7081ae6 100644 --- a/interfaces/ets/ani/hisysevent/ets/@ohos.hiSysEvent.ets +++ b/interfaces/ets/ani/hisysevent/ets/@ohos.hiSysEvent.ets @@ -121,7 +121,7 @@ export default namespace hiSysEvent { export function write(info: SysEventInfo, callback: AsyncCallback): void { let cb = (): Result => { return writeSync(info) } - taskpool.execute(cb).then((ret: NullishType): void => { + taskpool.execute(cb).then((ret: Any): void => { let retError = new BusinessError(); let writeResult: Result = ret as Result; retError.code = writeResult.code; @@ -133,7 +133,7 @@ export default namespace hiSysEvent { export function write(info: SysEventInfo): Promise { return new Promise((resolve: (v: undefined) => void, reject: (e: BusinessError) => void): void => { let cb = (): Result => { return writeSync(info) } - taskpool.execute(cb).then((ret: NullishType): void => { + taskpool.execute(cb).then((ret: Any): void => { let retError = new BusinessError(); let writeResult: Result = ret as Result; if (writeResult.code === 0) { -- Gitee