From e8dedb1630574c1dae9b7b84595c866aab714914 Mon Sep 17 00:00:00 2001 From: adelelimi Date: Tue, 12 Aug 2025 15:09:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=96=B9=E6=B3=95=E6=B7=B7?= =?UTF-8?q?=E7=94=A8=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: adelelimi --- api/@ohos.userIAM.userAuth.d.ts | 55 ++------------------------------- 1 file changed, 2 insertions(+), 53 deletions(-) diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index a2415b366f..b1e8418721 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -1571,37 +1571,7 @@ declare namespace userAuth { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - interface IAuthCallback { - /** - * The authentication result code is returned through the callback. - * If the authentication is passed, the authentication token is returned in extraInfo. - * - * @param { UserAuthResult } result - Authentication result information. - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @since 10 - */ - /** - * Called to return the authentication result. If the authentication is successful, - * UserAuthResult contains the token information. - * - * @param { UserAuthResult } result - Authentication result information. - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @atomicservice - * @since 12 - */ - onResult(result: UserAuthResult): void; - /** - * Called to return the authentication result. If the authentication is successful, - * UserAuthResult contains the token information. - * - * @type { function } - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - onResult: (result: UserAuthResult) => void; - } + type IAuthCallback = (result: UserAuthResult) => void; /** * User authentication instance, used to initiate a complete authentication. @@ -2180,28 +2150,7 @@ declare namespace userAuth { * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - interface IAuthWidgetCallback { - /** - * Called to return the command sent from the user authentication framework to the user authentication widget. - * - * @param { string } cmdData - Command sent from the user authentication framework to the user - * authentication widget. - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @systemapi Hide this for inner system use. - * @since 10 - */ - sendCommand(cmdData: string): void; - /** - * Called to return the command sent from the user authentication framework to the user authentication widget. - * - * @type { function } - * @syscap SystemCapability.UserIAM.UserAuth.Core - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.2 - */ - sendCommand: (cmdData: string) => void; - } + type IAuthWidgetCallback = (cmdData: string) => void; /** * Obtains the reusable authentication result. -- Gitee