fix: add missing type exports

This commit is contained in:
Michael Vines 2018-09-28 21:45:04 -07:00
parent aceb29f50f
commit c7100964a8
1 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
*/
declare module '@solana/web3.js' {
declare type PublicKey = string;
declare export type PublicKey = string;
// === src/account.js ===
declare export class Account {
@ -24,13 +24,13 @@ declare module '@solana/web3.js' {
/* TODO */
// === src/connection.js ===
declare type AccountInfo = {
declare export type AccountInfo = {
tokens: number,
programId: PublicKey,
userdata: Buffer | null,
}
declare type SignatureStatus = 'Confirmed' | 'SignatureNotFound' | 'ProgramRuntimeError' | 'GenericFailure';
declare export type SignatureStatus = 'Confirmed' | 'SignatureNotFound' | 'ProgramRuntimeError' | 'GenericFailure';
declare export class Connection {
constructor(endpoint: string): Connection;
@ -61,8 +61,8 @@ declare module '@solana/web3.js' {
}
// === src/transaction.js ===
declare type TransactionSignature = string;
declare type TransactionId = string;
declare export type TransactionSignature = string;
declare export type TransactionId = string;
declare type TransactionCtorFields = {|
signature?: Buffer;