Skip to content

Commit

Permalink
eth subscribe types updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Mar 26, 2019
1 parent 73cfd74 commit 0a6d8c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web3-eth/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export class Eth extends AbstractWeb3Module {
subscribe(type: 'syncing', options?: null, callback?: (error: Error, result: Syncing) => void): Subscription<Syncing>;
subscribe(type: 'newBlockHeaders', options?: null, callback?: (error: Error, blockHeader: BlockHeader) => void): Subscription<BlockHeader>;
subscribe(type: 'pendingTransactions', options?: null, callback?: (error: Error, transactionHash: string) => void): Subscription<string>;
subscribe(type: 'pendingTransactions' | 'logs' | 'syncing' | 'newBlockHeaders', options?: any, callback?: (error: Error, result: any) => void): Subscription<Log | BlockHeader | Syncing | string>;
subscribe(
type: 'pendingTransactions' | 'logs' | 'syncing' | 'newBlockHeaders',
options?: null | LogsOptions,
callback?: (error: Error, item: Log | Syncing | BlockHeader | string) => void
): Subscription<Log | BlockHeader | Syncing | string>;

getProtocolVersion(callback?: (error: Error, protocolVersion: string) => void): Promise<string>;

Expand Down

0 comments on commit 0a6d8c9

Please sign in to comment.