From a7b8dd8ad9455e3cecdc2b6b1786b52419d8a707 Mon Sep 17 00:00:00 2001 From: igorlegalov Date: Tue, 15 Jul 2025 15:21:45 +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 --- .../ets/@ohos.accessibility.config.ets | 16 ++++++++-------- interfaces/kits/ani/ets/@ohos.accessibility.ets | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/interfaces/kits/ani/accessibility_config/ets/@ohos.accessibility.config.ets b/interfaces/kits/ani/accessibility_config/ets/@ohos.accessibility.config.ets index 84f03f9f..5ff9b9ca 100644 --- a/interfaces/kits/ani/accessibility_config/ets/@ohos.accessibility.config.ets +++ b/interfaces/kits/ani/accessibility_config/ets/@ohos.accessibility.config.ets @@ -38,10 +38,10 @@ export namespace config { taskpool.execute((): void => { return this.setSync(value); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { resolve(ret as undefined); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { reject(ret as BusinessError); }); }); @@ -51,10 +51,10 @@ export namespace config { taskpool.execute((): void => { return this.setSync(value); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { callback(new BusinessError(), ret as undefined); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { callback(ret as BusinessError, undefined); }); } @@ -64,10 +64,10 @@ export namespace config { taskpool.execute((): Boolean => { return this.getSync(); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { resolve(ret as Boolean); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { reject(ret as BusinessError); }); }); @@ -77,10 +77,10 @@ export namespace config { taskpool.execute((): Boolean => { return this.getSync(); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { callback(new BusinessError(), ret as Boolean); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { callback(ret as BusinessError, false); }); } diff --git a/interfaces/kits/ani/ets/@ohos.accessibility.ets b/interfaces/kits/ani/ets/@ohos.accessibility.ets index 27a2ec82..2cdec45f 100644 --- a/interfaces/kits/ani/ets/@ohos.accessibility.ets +++ b/interfaces/kits/ani/ets/@ohos.accessibility.ets @@ -118,10 +118,10 @@ export namespace accessibility { taskpool.execute((): void => { return sendAccessibilityEventSync(event); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { callback(new BusinessError(), ret as undefined); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { callback(ret as BusinessError, undefined); }); } @@ -131,10 +131,10 @@ export namespace accessibility { taskpool.execute((): void => { return sendAccessibilityEventSync(event); }) - .then((ret: NullishType): void => { + .then((ret: Any): void => { resolve(ret as undefined); }) - .catch((ret: NullishType): void => { + .catch((ret: Any): void => { reject(ret as BusinessError); }); }); -- Gitee