mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
[FIX] Address.fromOutputScript returns string not buffer (#22560)
This commit is contained in:
committed by
Mohamed Hegazy
parent
ac99b869eb
commit
f668bd5740
3
types/bitcoinjs-lib/index.d.ts
vendored
3
types/bitcoinjs-lib/index.d.ts
vendored
@@ -4,6 +4,7 @@
|
||||
// Daniel <https://github.com/dlebrecht>
|
||||
// Ron Buckton <https://github.com/rbuckton>
|
||||
// Satana Charuwichitratana <https://github.com/micksatana>
|
||||
// Youssef GHOUBACH <https://github.com/youssefgh>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// Declaration file initially generated by dts-gen for bitcoinjs-lib 3.0.3
|
||||
// based on the flow version found at https://github.com/flowtype/flow-typed/blob/master/definitions/npm/bitcoinjs-lib_v2.x.x/flow_v0.17.x-/bitcoinjs-lib_v2.x.x.js
|
||||
@@ -383,7 +384,7 @@ export namespace address {
|
||||
/** @since 3.2.0 */
|
||||
function fromBech32(address: string): { data: Buffer, prefix: string, version: number };
|
||||
|
||||
function fromOutputScript(outputScript: Buffer, network?: Network): Buffer;
|
||||
function fromOutputScript(outputScript: Buffer, network?: Network): string;
|
||||
|
||||
function toBase58Check(hash: Buffer, version: number): string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user