aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts6
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;