File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments