fix(flow): Add ProgramAccountChangeCallback type

This commit is contained in:
Michael Vines 2019-03-14 15:59:25 -07:00
parent b5653f47eb
commit a4835edf3c
1 changed files with 6 additions and 0 deletions

View File

@ -43,7 +43,13 @@ declare module '@solana/web3.js' {
data: Buffer,
};
declare export type KeyedAccountInfo = {
accountId: PublicKey,
accountInfo: AccountInfo,
};
declare type AccountChangeCallback = (accountInfo: AccountInfo) => void;
declare type ProgramAccountChangeCallback = (keyedAccountInfo: KeyedAccountInfo) => void;
declare export type SignatureStatus =
| 'Confirmed'