Skip to content

Commit

Permalink
fix: use this: void to prevent linter errors on caller side
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Oct 16, 2023
1 parent d87ce69 commit 495caca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ export type EventHandlerArgs<
} & Omit<ReadContractParameters<TAbis, TContractName>, "blockNumber">
): Promise<ReadContractReturn<TAbis[TContractName], TFunctionName>>;

subscribeToContract(options: {
contract: keyof TAbis;
address: string;
toBlock?: ToBlock;
}): void;
subscribeToContract(
this: void,
options: {
contract: keyof TAbis;
address: string;
toBlock?: ToBlock;
}
): void;
};

export type EventHandler<
Expand Down

0 comments on commit 495caca

Please sign in to comment.