Skip to content

Commit 7fa1c39

Browse files
committed
doc: x -> bigint
1 parent fb1a7eb commit 7fa1c39

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bigint.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export interface FromBigIntOptions {
2929
*
3030
* Throws if the BigInt is negative or cannot fit into the specified length.
3131
*
32-
* @param x - The BigInt to convert (must be non-negative)
32+
* @param bigint - The BigInt to convert (must be non-negative)
3333
* @param options - Conversion options
3434
* @returns The converted bytes in big-endian format
3535
*/
36-
export function fromBigInt(x: bigint, options: { length: number; format?: 'uint8' }): Uint8ArrayBuffer;
37-
export function fromBigInt(x: bigint, options: { length: number; format: 'buffer' }): Buffer;
38-
export function fromBigInt(x: bigint, options: FromBigIntOptions): Uint8ArrayBuffer | Buffer;
36+
export function fromBigInt(bigint: bigint, options: { length: number; format?: 'uint8' }): Uint8ArrayBuffer;
37+
export function fromBigInt(bigint: bigint, options: { length: number; format: 'buffer' }): Buffer;
38+
export function fromBigInt(bigint: bigint, options: FromBigIntOptions): Uint8ArrayBuffer | Buffer;
3939

4040
/**
4141
* Convert a Uint8Array or Buffer to a BigInt

0 commit comments

Comments
 (0)