diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index a2415b366f8d4deaff9ce50b7790027535446cf8..b1e841872153906ce4010e7412c735944170bbc0 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.