diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 531c720dc2567dbe1e4d715058d93d35763bb694..49c47e6b98d0f3de676813f864fbfbcb386a4cde 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -1047,7 +1047,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @param { AsyncCallback> } callback - The callback of returning string in json-format of the corresponding config file. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700003 - The specified anilityName is not existed. + * @throws { BusinessError } 17700003 - The specified abilityName is not existed. * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. @@ -1064,7 +1064,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @returns { Promise> } Returns string in json-format of the corresponding config file. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700003 - The specified anilityName is not existed. + * @throws { BusinessError } 17700003 - The specified abilityName is not existed. * @throws { BusinessError } 17700024 - The specified metadataName is not existed or the profile is not json-format. * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @throws { BusinessError } 17700029 - The specified ability is disabled. @@ -1228,6 +1228,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 @@ -1246,6 +1247,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo'; * @throws { BusinessError } 401 - The parameter check failed. * @throws { BusinessError } 17700001 - The specified bundleName is not found. * @throws { BusinessError } 17700004 - The specified userId is not found. + * @throws { BusinessError } 17700026 - The specified bundle is disabled. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi * @since 9 diff --git a/api/@ohos.bundle.bundleMonitor.d.ts b/api/@ohos.bundle.bundleMonitor.d.ts index 7067c2299ca208df5762a7de2a676263f9b5a8c2..b56af8dda540fb6a8acd38d86dc371d07a0529d8 100644 --- a/api/@ohos.bundle.bundleMonitor.d.ts +++ b/api/@ohos.bundle.bundleMonitor.d.ts @@ -37,14 +37,14 @@ declare namespace bundleMonitor { * @systemapi * @since 9 */ - bundleName: string; + readonly bundleName: string; /** * The user id * @type {number} * @systemapi * @since 9 */ - userId: number; + readonly userId: number; } /** diff --git a/api/bundleManager/permissionDef.d.ts b/api/bundleManager/permissionDef.d.ts index 2d2cc327a2077d3af2e55002ff20ec65eb7004cf..56aa968b62463e2edf6464d5dd655f2fd6686642 100644 --- a/api/bundleManager/permissionDef.d.ts +++ b/api/bundleManager/permissionDef.d.ts @@ -27,7 +27,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - permissionName: string; + readonly permissionName: string; /** * Indicates the grant mode of this permission @@ -35,7 +35,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - grantMode: number; + readonly grantMode: number; /** * Indicates the labelId of this permission @@ -43,7 +43,7 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - labelId: number; + readonly labelId: number; /** * Indicates the descriptionId of this permission @@ -51,5 +51,5 @@ * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 */ - descriptionId: number; + readonly descriptionId: number; } \ No newline at end of file