diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 98589448cb..c2487dd0a3 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -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'