@concordium/browser-wallet-api-helpers 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,8 +100,12 @@ interface MainWalletApi {
100
100
  * user will be prompted to select which accounts should be connected. The list of connected accounts is returned
101
101
  * to the caller. If a connection has already been accepted previously, then the returned promise will resolve
102
102
  * with the list of connected accounts. Note that the list of accounts may be empty.
103
+ *
104
+ * @throws If connection is rejected by the user
105
+ *
106
+ * @returns {string[]} The list of accounts connected to the application.
103
107
  */
104
- requestAccounts(): Promise<string[] | undefined>;
108
+ requestAccounts(): Promise<string[]>;
105
109
  /**
106
110
  * Returns some connected account, prioritizing the most recently selected. Resolves with account address or undefined if there are no connected account.
107
111
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concordium/browser-wallet-api-helpers",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "license": "Apache-2.0",
5
5
  "packageManager": "yarn@3.2.0",
6
6
  "main": "lib/index.js",