diff --git a/api/@ohos.bundle.overlay.d.ts b/api/@ohos.bundle.overlay.d.ts index 38287383e4..9998081128 100755 --- a/api/@ohos.bundle.overlay.d.ts +++ b/api/@ohos.bundle.overlay.d.ts @@ -29,8 +29,8 @@ declare namespace overlay { * @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature. * @param { AsyncCallback } callback - The callback of setting specified overlay module enabled state result. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700033 - The specified module is not overlay module. + * @throws { BusinessError } 17700002 - The specified module name is not found. + * @throws { BusinessError } 17700033 - The specified module is not an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @since 10 */ @@ -48,9 +48,9 @@ declare namespace overlay { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. + * @throws { BusinessError } 17700002 - The specified module name is not found. * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. - * @throws { BusinessError } 17700033 - The specified module is not overlay module. + * @throws { BusinessError } 17700033 - The specified module is not an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @systemapi * @since 10 @@ -63,8 +63,8 @@ declare namespace overlay { * @param { string } moduleName - Indicates the module name of the overlay module to be queried. * @param { AsyncCallback } callback - The callback of getting OverlayModuleInfo object. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700033 - The specified module is not overlay module. + * @throws { BusinessError } 17700002 - The specified module name is not found. + * @throws { BusinessError } 17700033 - The specified module is not an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @since 10 */ @@ -76,8 +76,8 @@ declare namespace overlay { * @param { string } targetModuleName - Indicates the target module name of the target module to be queried. * @param { AsyncCallback> } callback - The callback of getting a list of OverlayModuleInfo object. * @throws { BusinessError } 401 - The parameter check failed. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700034 - The specified module is overlay module. + * @throws { BusinessError } 17700002 - The specified module name is not found. + * @throws { BusinessError } 17700034 - The specified module is an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @since 10 */ @@ -94,9 +94,9 @@ declare namespace overlay { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. + * @throws { BusinessError } 17700002 - The specified module name is not found. * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. - * @throws { BusinessError } 17700033 - The specified module is not overlay module. + * @throws { BusinessError } 17700033 - The specified module is not an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @systemapi * @since 10 @@ -114,9 +114,9 @@ declare namespace overlay { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. + * @throws { BusinessError } 17700002 - The specified module name is not found. * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. - * @throws { BusinessError } 17700033 - The specified module is not overlay module. + * @throws { BusinessError } 17700033 - The specified module is not an overlay module. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @systemapi * @since 10 @@ -133,9 +133,9 @@ declare namespace overlay { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700034 - The specified module is overlay module. - * @throws { BusinessError } 17700035 - The specified bundle is overlay bundle. + * @throws { BusinessError } 17700002 - The specified module name is not found. + * @throws { BusinessError } 17700034 - The specified module is an overlay module. + * @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @systemapi * @since 10 @@ -153,9 +153,9 @@ declare namespace overlay { * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not existed. - * @throws { BusinessError } 17700034 - The specified module is overlay module. - * @throws { BusinessError } 17700035 - The specified bundle is overlay bundle. + * @throws { BusinessError } 17700002 - The specified module name is not found. + * @throws { BusinessError } 17700034 - The specified module is an overlay module. + * @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle. * @syscap SystemCapability.BundleManager.BundleFramework.Overlay * @systemapi * @since 10 diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 1657a1eade..3e3f380e5d 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -309,7 +309,7 @@ declare namespace userAuth { * @deprecated since 9 * @useinstead ohos.userIAM.userAuth.AuthEvent.callback */ - onAcquireInfo?: (module: number, acquire: number, extraInfo: AuthResult) => void; + onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; } /** @@ -849,18 +849,6 @@ declare namespace userAuth { cancel: () => void; } - /** - * Get version information. - * - * @permission ohos.permission.ACCESS_BIOMETRIC - * @returns { number } Returns version information. - * @throws { BusinessError } 201 - Permission verification failed. - * @throws { BusinessError } 12500002 - General operation error. - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 9 - */ - function getVersion(): number; - /** * Check whether the authentication capability is available. *