Be more specific with blockParam valid values

This commit is contained in:
Fabio Berger
2017-06-02 20:46:27 +02:00
parent bef967f405
commit 78d7febede

View File

@@ -193,9 +193,11 @@ export interface IndexFilterValues {
[index: string]: any;
}
export type BlockParam = 'latest'|'earliest'|'pending'|number;
export interface SubscriptionOpts {
fromBlock: string|number;
toBlock: string|number;
fromBlock: BlockParam;
toBlock: BlockParam;
}
export type DoneCallback = (err?: Error) => void;