From 070f01605da3b9b3d340ba85d99f90a670862add Mon Sep 17 00:00:00 2001 From: igorlegalov Date: Tue, 15 Jul 2025 17:37:18 +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 --- .../@ohos.bundle.distributedBundleManager.ets | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/interfaces/kits/ani/distributed_bundle_manager/ets/@ohos.bundle.distributedBundleManager.ets b/interfaces/kits/ani/distributed_bundle_manager/ets/@ohos.bundle.distributedBundleManager.ets index 19515e8..06b92cc 100644 --- a/interfaces/kits/ani/distributed_bundle_manager/ets/@ohos.bundle.distributedBundleManager.ets +++ b/interfaces/kits/ani/distributed_bundle_manager/ets/@ohos.bundle.distributedBundleManager.ets @@ -39,7 +39,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfoNative(elementName2Array(elementName), ''); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let result: RemoteAbilityInfo = e as RemoteAbilityInfo; callback(null, result); }, (err: Error): void => { @@ -53,7 +53,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfoNative(elementName2Array(elementName), ''); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let result: RemoteAbilityInfo = e as RemoteAbilityInfo; resolve(result); }, (err: Error): void => { @@ -68,7 +68,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfosNative(elementNames, ''); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let resultArray: Array = e as Array; callback(null, resultArray); }, (err: Error): void => { @@ -82,7 +82,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfosNative(elementNames, ''); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let resultArray: Array = e as Array; resolve(resultArray); }, (err: Error): void => { @@ -97,7 +97,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfoNative(elementName2Array(elementName), locale); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let result: RemoteAbilityInfo = e as RemoteAbilityInfo; callback(null, result); }, (err: Error): void => { @@ -111,7 +111,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfoNative(elementName2Array(elementName), locale); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let result: RemoteAbilityInfo = e as RemoteAbilityInfo; resolve(result); }, (err: Error): void => { @@ -126,7 +126,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfosNative(elementNames, locale); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let resultArray: Array = e as Array; callback(null, resultArray); }, (err: Error): void => { @@ -140,7 +140,7 @@ export default namespace distributedBundleManager { return distributedBundleManager.getRemoteAbilityInfosNative(elementNames, locale); }; let p1 = taskpool.execute(cb); - p1.then((e: NullishType) => { + p1.then((e: Any) => { let resultArray: Array = e as Array; resolve(resultArray); }, (err: Error): void => { -- Gitee