You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
When using this package from a TypeScript-enabled project, the function onContractEvent has any type, which prevents TypeScript for performing any type checking.
Could not find a declaration file for module 'on-contract-event'. '(...)/node_modules/on-contract-event/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/on-contract-event` if it exists or add a new declaration (.d.ts) file containing `declare module 'on-contract-event';`ts(7016)
Things to change:
Add index.d.ts file and describe the exported types there
Add the following entry to package.json:
"typings": "index.d.ts"
The text was updated successfully, but these errors were encountered:
As mentioned in the review of the spark-evaluate PR, we should rather switch to ethers@6. This module was only a temporary crutch, as JSON-RPC providers didn't yet support eth_getFilterChanges. I believe that's also less work :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using this package from a TypeScript-enabled project, the function
onContractEvent
hasany
type, which prevents TypeScript for performing any type checking.Things to change:
Add
index.d.ts
file and describe the exported types thereAdd the following entry to
package.json
:The text was updated successfully, but these errors were encountered: