diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 0b2eff47d641a924da0e2dcaff70dcd78bb5046d..88bfb28a10e46458c498dc2b712e7b45b5c476db 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -14,13 +14,13 @@ */ import { AsyncCallback, Callback } from './basic'; -import { ApplicationInfo } from './bundle/applicationInfo'; -import { BundleInfo } from './bundle/bundleInfo'; -import { AbilityInfo } from './bundle/abilityInfo'; -import { ExtensionAbilityInfo } from './bundle/extensionAbilityInfo'; +import { ApplicationInfo as _ApplicationInfo } from './bundle/applicationInfo'; +import { BundleInfo as _BundleInfo } from './bundle/bundleInfo'; +import { AbilityInfo as _AbilityInfo } from './bundle/abilityInfo'; +import { ExtensionAbilityInfo as _ExtensionAbilityInfo } from './bundle/extensionAbilityInfo'; import Want from './@ohos.application.want'; -import { BundleInstaller } from './bundle/bundleInstaller'; -import { PermissionDef } from './bundle/PermissionDef'; +import { BundleInstaller as _BundleInstaller } from './bundle/bundleInstaller'; +import { PermissionDef as _PermissionDef } from './bundle/PermissionDef'; import { DispatchInfo } from './bundle/dispatchInfo'; import image from './@ohos.multimedia.image'; import pack from './bundle/packInfo'; @@ -910,6 +910,31 @@ declare namespace bundle { */ function getDisposedStatus(bundleName: string, callback: AsyncCallback): void; function getDisposedStatus(bundleName: string): Promise; + + /** + * Re-export ApplicationInfo under namespace + */ + export type ApplicationInfo = _ApplicationInfo; + /** + * Re-export BundleInfo under namespace + */ + export type BundleInfo = _BundleInfo; + /** + * Re-export AbilityInfo under namespace + */ + export type AbilityInfo = _AbilityInfo; + /** + * Re-export ExtensionAbilityInfo under namespace + */ + export type ExtensionAbilityInfo = _ExtensionAbilityInfo; + /** + * Re-export BundleInstaller under namespace + */ + export type BundleInstaller = _BundleInstaller; + /** + * Re-export PermissionDef under namespace + */ + export type PermissionDef = _PermissionDef; } export default bundle; diff --git a/api/@ohos.bundle.defaultAppManager.d.ts b/api/@ohos.bundle.defaultAppManager.d.ts index d467bb1b4a8d8e4d78dabfdff5e52e53682214e3..de71cb471445da56518de624c69427a13c8a8286 100644 --- a/api/@ohos.bundle.defaultAppManager.d.ts +++ b/api/@ohos.bundle.defaultAppManager.d.ts @@ -14,8 +14,8 @@ */ import { AsyncCallback } from './basic'; -import { BundleInfo } from './bundle/bundleInfo'; -import { ElementName } from './bundle/elementName'; +import { BundleInfo as _BundleInfo } from './bundle/bundleInfo'; +import { ElementName as _ElementName } from './bundle/elementName'; /** * default application manager. @@ -138,6 +138,15 @@ declare namespace defaultAppManager { function resetDefaultApplication(type: string, userId?: number) : Promise; function resetDefaultApplication(type: string, userId: number, callback: AsyncCallback) : void; function resetDefaultApplication(type: string, callback: AsyncCallback) : void; + + /** + * Re-export BundleInfo under namespace + */ + export type BundleInfo = _BundleInfo; + /** + * Re-export ElementName under namespace + */ + export type ElementName = _ElementName; } export default defaultAppManager; diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index aba733ae16560ca6561d05becfb9b85429ab205d..39fe935a7022b74e1da687bf001c678b9aa14149 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -14,9 +14,9 @@ */ import { AsyncCallback, Callback } from './basic'; -import { BundleStatusCallback } from './bundle/bundleStatusCallback'; -import { LauncherAbilityInfo} from './bundle/launcherAbilityInfo'; -import { ShortcutInfo } from './bundle/shortcutInfo'; +import { BundleStatusCallback as _BundleStatusCallback } from './bundle/bundleStatusCallback'; +import { LauncherAbilityInfo as _LauncherAbilityInfo } from './bundle/launcherAbilityInfo'; +import { ShortcutInfo as _ShortcutInfo } from './bundle/shortcutInfo'; /** * inner bundle manager. @@ -94,6 +94,19 @@ declare namespace innerBundleManager { */ function getShortcutInfos(bundleName :string, callback: AsyncCallback>) : void; function getShortcutInfos(bundleName : string) : Promise>; + /** + * Re-export BundleStatusCallback under namespace + */ + export type BundleStatusCallback = _BundleStatusCallback; + /** + * Re-export LauncherAbilityInfo under namespace + */ + export type LauncherAbilityInfo = _LauncherAbilityInfo; + /** + * Re-export ShortcutInfo under namespace + */ + export type ShortcutInfo = _ShortcutInfo; + } export default innerBundleManager; diff --git a/api/@ohos.distributedBundle.d.ts b/api/@ohos.distributedBundle.d.ts index d838c64e5c911420a7449d2c932518a5480bb5b3..4bd63fef4e9b0bd3a28a5cc82fc5eb6c26a21c64 100644 --- a/api/@ohos.distributedBundle.d.ts +++ b/api/@ohos.distributedBundle.d.ts @@ -14,8 +14,8 @@ */ import { AsyncCallback } from './basic'; -import { ElementName } from './bundle/elementName'; -import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; +import { ElementName as _ElementName } from './bundle/elementName'; +import { RemoteAbilityInfo as _RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; /** * distributedBundle. @@ -79,4 +79,13 @@ import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; */ function getRemoteAbilityInfos(elementNames: Array, locale: string, callback: AsyncCallback>): void; function getRemoteAbilityInfos(elementNames: Array, locale: string): Promise>; + + /** + * Re-export ElementName under namespace + */ + export type ElementName = _ElementName; + /** + * Re-export RemoteAbilityInfo under namespace + */ + export type RemoteAbilityInfo = _RemoteAbilityInfo; } \ No newline at end of file