File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ export function toBase58(arr: Uint8ArrayBuffer): string;
3434 * @param format - Output format (default: 'uint8')
3535 * @returns The decoded bytes
3636 */
37- export function fromBase58 ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer ;
37+ export function fromBase58 ( string : string , format ?: 'uint8' ) : Uint8ArrayBuffer ;
3838export function fromBase58 ( string : string , format : 'buffer' ) : Buffer ;
39+ export function fromBase58 ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | Buffer ;
3940
4041/**
4142 * Encode a `Uint8Array` to a base58 string using XRP alphabet
@@ -56,5 +57,6 @@ export function toBase58xrp(arr: Uint8ArrayBuffer): string;
5657 * @param format - Output format (default: 'uint8')
5758 * @returns The decoded bytes
5859 */
59- export function fromBase58xrp ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer ;
60+ export function fromBase58xrp ( string : string , format ?: 'uint8' ) : Uint8ArrayBuffer ;
6061export function fromBase58xrp ( string : string , format : 'buffer' ) : Buffer ;
62+ export function fromBase58xrp ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | Buffer ;
You can’t perform that action at this time.
0 commit comments