]> git.codecow.com Git - libnemo.git/commitdiff
Formatting.
authorChris Duncan <chris@zoso.dev>
Fri, 26 Sep 2025 14:11:29 +0000 (07:11 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 26 Sep 2025 14:11:29 +0000 (07:11 -0700)
src/lib/block.ts

index e5cd617b9d0677b7dc3cc5d47b8d7aaef9fbe9f7..6846c64b55beeae1062e2261cb8a0d01d2f50ddc 100644 (file)
@@ -81,13 +81,13 @@ export class Block {
        * subsequently be configured as a change, receive, or send transaction.
        *
        * All parameters are eventually required in order to initialize the block, but
-       * but if `account` is an Account class object, its properties can be used for
-       * the other parameters instead of passing them into the constructor.
+       * if `account` is an Account class object, its properties can be used for the
+       * other parameters instead of passing them into the constructor.
        *
-       * @param {(string|Account)} account - Target of the transaction; can include `balance`, `frontier`, `representative`
-       * @param {(bigint|number|string)} [balance] - Current balance of the target account in raw
+       * @param {(string | Account)} account - Target of the transaction; can include `balance`, `frontier`, `representative`
+       * @param {(bigint | number | string)} [balance] - Current balance of the target account in raw
        * @param {string} [previous] - Current frontier block hash of the target account
-       * @param {(string|Account)} [representative] - Current representative of the target account
+       * @param {(string | Account)} [representative] - Current representative of the target account
        */
        constructor (account: string | Account, balance?: bigint | number | string, previous?: string, representative?: string | Account)
        constructor (account: unknown, balance: unknown, previous: unknown, representative: unknown) {
@@ -184,7 +184,7 @@ export class Block {
        * Set the subtype, link, and target account to configure this as a change
        * representative block.
        *
-       * @param {(string|Account)} account - Account to choose as representative, or its address or public key
+       * @param {(string | Account)} account - Account to choose as representative, or its address or public key
        * @returns {Block} This block with link, representative, and subtype configured
        */
        change (representative: string | Account): Block
@@ -280,8 +280,8 @@ export class Block {
        * Set the amount of nano that this block will receive from a corresponding
        * send block.
        *
-       * @param {(string|Block)} sendBlock - Corresponding send block or its hash
-       * @param {(bigint|number|string)} amount - Amount to be received from sender
+       * @param {(string | Block)} sendBlock - Corresponding send block or its hash
+       * @param {(bigint | number | string)} amount - Amount to be received from sender
        * @param {string} [unit] - Unit of measure for amount (e.g. 'NANO' = 10³⁰ RAW). Default: "RAW"
        * @returns {Block} This block with balance, link, and subtype configured
        */
@@ -323,8 +323,8 @@ export class Block {
        /**
        * Set the amount of nano that this block will send to a recipient account.
        *
-       * @param {(string|Account)} account - Account to target or its address or public key
-       * @param {(bigint|number|string)} amount - Amount to send to recipient
+       * @param {(string | Account)} account - Account to target or its address or public key
+       * @param {(bigint | number | string)} amount - Amount to send to recipient
        * @param {string} [unit] - Unit of measure for amount (e.g. 'NANO' = 10³⁰ RAW). Default: "RAW"
        * @returns {Block} This block with balance, link, and subtype configured
        */