diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:46:27 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:46:27 +0800 |
commit | 78d7febede6724db16ffa96c9640cc4baa46ebe6 (patch) | |
tree | 2d512ea0b8454424289d003b457c2a36537653f8 | |
parent | bef967f405519eb922f5918852250ad4af544705 (diff) | |
download | dexon-0x-contracts-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.gz dexon-0x-contracts-78d7febede6724db16ffa96c9640cc4baa46ebe6.tar.zst dexon-0x-contracts-78d7febede6724db16ffa96c9640cc4baa46ebe6.zip |
Be more specific with blockParam valid values
-rw-r--r-- | src/types.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts index b5430a783..602c63859 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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; |