From ef0bad0910afbbb09cbf621679d4b758c161fbf7 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sun, 29 Sep 2019 13:12:01 -0400 Subject: [PATCH] fix: udpate PublicKey flow def (#496) --- web3.js/module.flow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 7798d0ce77..8cb3ac6425 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -15,11 +15,12 @@ import BN from 'bn.js'; declare module '@solana/web3.js' { // === src/publickey.js === declare export class PublicKey { - constructor(number: string | Buffer | Array): PublicKey; + constructor(value: number | string | Buffer | Array): PublicKey; static isPublicKey(o: Object): boolean; equals(publickey: PublicKey): boolean; toBase58(): string; toBuffer(): Buffer; + toString(): string; } // === src/blockhash.js ===