From 78d7febede6724db16ffa96c9640cc4baa46ebe6 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 2 Jun 2017 20:46:27 +0200 Subject: Be more specific with blockParam valid values --- src/types.ts | 6 ++++-- 1 file 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; -- cgit