From: Chris Duncan Date: Fri, 26 Sep 2025 14:11:29 +0000 (-0700) Subject: Formatting. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=9ba81dd033dbea8d4bab0b258f8a008b6697eb89;p=libnemo.git Formatting. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index e5cd617..6846c64 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -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 */