diff --git a/api/@ohos.account.appAccount.d.ts b/api/@ohos.account.appAccount.d.ts index a08f33eac576ebfa78272b0e913b12dacecb679f..0a1f50f89b35a54cd687ed332db2aff460436f86 100644 --- a/api/@ohos.account.appAccount.d.ts +++ b/api/@ohos.account.appAccount.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -269,7 +269,7 @@ declare namespace appAccount { * @since 7 * @return void */ - off(type: 'change', callback?: Callback): void; + off(type: 'change', callback?: Callback>): void; /** * Authenticates an application account to get an oauth token. @@ -326,7 +326,7 @@ declare namespace appAccount { deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise; /** - * Sets the oauth token visibility of the specifed authentication type to a third-party application. + * Sets the oauth token visibility of the specified authentication type to a third-party application. *

* Only the owner of the application account has the permission to call this method. * @@ -341,7 +341,7 @@ declare namespace appAccount { setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise; /** - * Checks the oauth token visibility of the specifed authentication type for a third-party application. + * Checks the oauth token visibility of the specified authentication type for a third-party application. *

* Only the owner of the application account has the permission to call this method. * diff --git a/api/@ohos.account.distributedAccount.d.ts b/api/@ohos.account.distributedAccount.d.ts index 33ba7f02e20789e9f61c298cf7834330eba5caef..38a0fa43bd19d003d967e3f1c7759eefd2c32ec5 100644 --- a/api/@ohos.account.distributedAccount.d.ts +++ b/api/@ohos.account.distributedAccount.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/api/@ohos.account.osAccount.d.ts b/api/@ohos.account.osAccount.d.ts index 9229e35f59653bda9ede893ff9f339062254852a..4dc75da481cece0dfbe28209b64c46bbb9b3e80f 100644 --- a/api/@ohos.account.osAccount.d.ts +++ b/api/@ohos.account.osAccount.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at