From 81e19846efe5cbad41986c49e0d0b7b0a972a311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E5=9B=BD=E5=86=9B?= Date: Mon, 4 Aug 2025 16:14:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=8D=E5=85=81=E8=AE=B8@throws?= =?UTF-8?q?=E6=8A=9B=E5=87=BA401=E9=94=99=E8=AF=AFsince18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 任国军 --- api/application/UIExtensionContext.d.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/application/UIExtensionContext.d.ts b/api/application/UIExtensionContext.d.ts index 46bd0450b6..112c8d616f 100755 --- a/api/application/UIExtensionContext.d.ts +++ b/api/application/UIExtensionContext.d.ts @@ -498,7 +498,6 @@ declare class UIExtensionContext extends ExtensionContext { * @param { Want } want - Indicates the ability to start. * @param { AsyncCallback } callback - The callback is used to return the result of startAbility. * @throws { BusinessError } 201 - The application does not have permission to call the interface. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. * @throws { BusinessError } 16000004 - Cannot start an invisible component. @@ -1037,7 +1036,6 @@ declare class UIExtensionContext extends ExtensionContext { * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. * @throws { BusinessError } 16000004 - Cannot start an invisible component. @@ -1070,7 +1068,6 @@ declare class UIExtensionContext extends ExtensionContext { * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. * @throws { BusinessError } 16000004 - Cannot start an invisible component. @@ -1091,7 +1088,7 @@ declare class UIExtensionContext extends ExtensionContext { startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; /** - * Set the uiextension to either not allow being covered by the host page or allow it. + * Set the uiextension to either not allow being covered by the host page or allow it. * * @param { boolean } isForbidden - Indicates the bool value of uiextension can be covered by host page. * True indicates not allowing. -- Gitee