@@ -46,8 +46,9 @@ export interface Base58CheckAsync {
4646 * @returns A Promise that resolves to the decoded bytes
4747 */
4848 decode ( string : string , format ?: 'uint8' ) : Promise < Uint8ArrayBuffer > ;
49+ decode ( string : string , format : 'arraybuffer' ) : Promise < ArrayBuffer > ;
4950 decode ( string : string , format : 'buffer' ) : Promise < Buffer > ;
50- decode ( string : string , format ?: OutputFormat ) : Promise < Uint8ArrayBuffer | Buffer > ;
51+ decode ( string : string , format ?: OutputFormat ) : Promise < Uint8ArrayBuffer | ArrayBuffer | Buffer > ;
5152}
5253
5354/**
@@ -70,8 +71,9 @@ export interface Base58CheckSync extends Base58CheckAsync {
7071 * @returns The decoded bytes
7172 */
7273 decodeSync ( string : string , format ?: 'uint8' ) : Uint8ArrayBuffer ;
74+ decodeSync ( string : string , format : 'arraybuffer' ) : ArrayBuffer ;
7375 decodeSync ( string : string , format : 'buffer' ) : Buffer ;
74- decodeSync ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | Buffer ;
76+ decodeSync ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | ArrayBuffer | Buffer ;
7577}
7678
7779/**
@@ -104,8 +106,9 @@ export function toBase58check(arr: Uint8Array): Promise<string>;
104106 * @returns A Promise that resolves to the decoded bytes
105107 */
106108export function fromBase58check ( string : string , format ?: 'uint8' ) : Promise < Uint8ArrayBuffer > ;
109+ export function fromBase58check ( string : string , format : 'arraybuffer' ) : Promise < ArrayBuffer > ;
107110export function fromBase58check ( string : string , format : 'buffer' ) : Promise < Buffer > ;
108- export function fromBase58check ( string : string , format ?: OutputFormat ) : Promise < Uint8ArrayBuffer | Buffer > ;
111+ export function fromBase58check ( string : string , format ?: OutputFormat ) : Promise < Uint8ArrayBuffer | ArrayBuffer | Buffer > ;
109112
110113/**
111114 * Encode bytes to base58check string synchronously
@@ -127,5 +130,6 @@ export function toBase58checkSync(arr: Uint8Array): string;
127130 * @returns The decoded bytes
128131 */
129132export function fromBase58checkSync ( string : string , format ?: 'uint8' ) : Uint8ArrayBuffer ;
133+ export function fromBase58checkSync ( string : string , format : 'arraybuffer' ) : ArrayBuffer ;
130134export function fromBase58checkSync ( string : string , format : 'buffer' ) : Buffer ;
131- export function fromBase58checkSync ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | Buffer ;
135+ export function fromBase58checkSync ( string : string , format ?: OutputFormat ) : Uint8ArrayBuffer | ArrayBuffer | Buffer ;
0 commit comments