fix: add flowtype for SignaturePubkeyPair

This commit is contained in:
Michael Vines 2018-11-28 10:46:09 -08:00
parent 508678a441
commit 4acccb3976
2 changed files with 13 additions and 8 deletions

View File

@ -110,6 +110,11 @@ declare module '@solana/web3.js' {
userdata: Buffer; userdata: Buffer;
} }
declare type SignaturePubkeyPair = {|
signature: Buffer | null,
publicKey: PublicKey,
|};
declare type TransactionCtorFields = {| declare type TransactionCtorFields = {|
fee?: number, fee?: number,
lastId?: TransactionId, lastId?: TransactionId,

View File

@ -62,6 +62,14 @@ export class TransactionInstruction {
} }
} }
/**
* @private
*/
type SignaturePubkeyPair = {|
signature: Buffer | null,
publicKey: PublicKey,
|};
/** /**
* List of Transaction object fields that may be initialized at construction * List of Transaction object fields that may be initialized at construction
* *
@ -77,14 +85,6 @@ type TransactionCtorFields = {|
signatures?: Array<SignaturePubkeyPair>, signatures?: Array<SignaturePubkeyPair>,
|}; |};
/**
* @private
*/
type SignaturePubkeyPair = {|
signature: Buffer | null,
publicKey: PublicKey,
|};
/** /**
* Transaction class * Transaction class
*/ */