From: Chris Duncan Date: Mon, 2 Dec 2024 19:30:24 +0000 (-0800) Subject: Fix JSDoc. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e7a275a5960296e68af1ddefa47cc3ec89dce23f;p=libnemo.git Fix JSDoc. --- diff --git a/src/lib/account.ts b/src/lib/account.ts index 9933282..197553d 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -73,7 +73,7 @@ export class Account { * * @param {string} address - Address of the account * @param {number} [index] - Account number used when deriving the address - * @returns {Promise} The instantiated Account object + * @returns {Account} The instantiated Account object */ static fromAddress (address: string, index?: number): Account { Account.#isInternal = true @@ -88,7 +88,7 @@ export class Account { * * @param {string} publicKey - Public key of the account * @param {number} [index] - Account number used when deriving the key - * @returns {Promise} The instantiated Account object + * @returns {Account} The instantiated Account object */ static fromPublicKey (publicKey: string, index?: number): Account { Account.#isInternal = true @@ -104,7 +104,7 @@ export class Account { * * @param {string} privateKey - Private key of the account * @param {number} [index] - Account number used when deriving the key - * @returns {Promise} A new Account object + * @returns {Account} A new Account object */ static fromPrivateKey (privateKey: string, index?: number): Account { Account.#isInternal = true @@ -126,7 +126,7 @@ export class Account { * @param {string} publicKey - Public key of the account * @param {string} privateKey - Private key of the account * @param {number} [index] - Account number used when deriving the key - * @returns {Promise} The instantiated Account object + * @returns {Account} The instantiated Account object */ static fromKeypair (publicKey: string, privateKey: string, index?: number): Account { Account.#isInternal = true