diff --git a/en/application-dev/reference/apis/js-apis-app-ability-wantAgent.md b/en/application-dev/reference/apis/js-apis-app-ability-wantAgent.md index 60a89ab6abdcb3ba7331eedd8c7970af7cf1f266..b7054a19105b8656badd0cb026ee273fbe4d2ae1 100644 --- a/en/application-dev/reference/apis/js-apis-app-ability-wantAgent.md +++ b/en/application-dev/reference/apis/js-apis-app-ability-wantAgent.md @@ -620,7 +620,7 @@ Obtains the want in a **WantAgent** object. This API uses a promise to return th | Type | Description | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | Promise used to return the want.| +| Promise\<[Want](js-apis-app-ability-want.md)\> | Promise used to return the want.| **Error codes** @@ -960,7 +960,7 @@ Checks whether two **WantAgent** objects are equal to determine whether the same | Name | Type | Mandatory| Description | | ---------- | ------------------------ | ---- | --------------------------------------- | | agent | WantAgent | Yes | The first **WantAgent** object. | -| otherAgent | WantAgent | Yes | Target **WantAgent** object. | +| otherAgent | WantAgent | Yes | The second **WantAgent** object. | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Example** @@ -1041,7 +1041,7 @@ Checks whether two **WantAgent** objects are equal to determine whether the same | Name | Type | Mandatory| Description | | ---------- | --------- | ---- | ------------- | | agent | WantAgent | Yes | The first **WantAgent** object.| -| otherAgent | WantAgent | Yes | Target **WantAgent** object.| +| otherAgent | WantAgent | Yes | The second **WantAgent** object. | **Return value** diff --git a/en/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md b/en/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md index cffcba65b1f1a6975024b080a20f078d1ee2f176..a7c441d1db8485cd4d98313cc71faf7f334600d4 100644 --- a/en/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md +++ b/en/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md @@ -16,7 +16,7 @@ import wantAgent from '@ohos.app.ability.wantAgent'; | Name | Type | Mandatory| Description | | -------------- | ------------------------------- | ---- | ---------------------- | -| wants | Array\ | Yes | Array of all **Want** objects. | +| wants | Array\<[Want](js-apis-app-ability-want.md)\> | Yes | Array of all **Want** objects. | | operationType | [wantAgent.OperationType](js-apis-app-ability-wantAgent.md#operationtype) | Yes | Operation type. | | requestCode | number | Yes | Request code defined by the user.| | wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | No | Array of flags for using the **WantAgent** object. |