Skip to content

Commit ec1291d

Browse files
committed
types: fix makeBase58check types
1 parent 170c628 commit ec1291d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base58check.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export interface Base58CheckSync extends Base58CheckAsync {
8181
* @param hashAlgoSync - Optional sync hash function
8282
* @returns Base58Check encoder/decoder instance
8383
*/
84-
export function makeBase58check(hashAlgo: HashFunction, hashAlgoSync?: HashFunctionSync): Base58CheckSync;
85-
export function makeBase58check(hashAlgo: HashFunction): Base58CheckAsync;
84+
export function makeBase58check(hashAlgo: HashFunction | HashFunctionSync, hashAlgoSync: HashFunctionSync): Base58CheckSync;
85+
export function makeBase58check(hashAlgo: HashFunction | HashFunctionSync): Base58CheckAsync;
8686

8787
/**
8888
* Encode bytes to base58check string asynchronously

0 commit comments

Comments
 (0)