filter.watch callback param accepts arguments
This commit is contained in:
parent
9e1c142f02
commit
2bc9d5d490
8
packages/web3-typescript-typings/index.d.ts
vendored
8
packages/web3-typescript-typings/index.d.ts
vendored
@ -68,9 +68,15 @@ declare module 'web3' {
|
||||
topics: string[];
|
||||
}
|
||||
|
||||
interface SolidityEvent<A> {
|
||||
event: string
|
||||
address: string
|
||||
args: A
|
||||
}
|
||||
|
||||
interface FilterResult {
|
||||
get(callback: () => void): void;
|
||||
watch(callback: () => void): void;
|
||||
watch<A>(callback: (error: string|null, result: SolidityEvent<A>) => void): void;
|
||||
stopWatching(): void;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user