From 846ddf1c1abab6bc9a6e0c9356e3d8b4d3b15f5b Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Mon, 30 Jun 2025 18:12:07 +0300 Subject: [PATCH] Revert "Revert Union Type" This reverts commit 04cfb10888eb5698cc4b808d4c7deafce9917072. Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICIYJL Signed-off-by: Lyupa Anastasia --- .../emitter/ani/ets/@ohos.events.emitter.ets | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets index b024039..9ab3a71 100644 --- a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets +++ b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets @@ -96,13 +96,6 @@ namespace emitter { } } - export function on(eventId: string, callback: Callback): void { - if (eventId === '' || callback == null) { - return; - } - emitter.OnOrOnceStringSync(eventId, false, callback, "eventData"); - } - export function once(eventId: string, callback: Callback): void { if (eventId === '' || callback == null) { return; @@ -117,13 +110,6 @@ namespace emitter { OffStringIdSync(eventId); } - export function off(eventId: string, callback: Callback): void { - if (eventId === '' || callback == null) { - return; - } - emitter.OffStringSync(eventId, callback); - } - export function off(eventId: string, callback: Callback | Callback>): void { if (eventId === '' || callback == null) { return; -- Gitee