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 was archived by the owner on Mar 5, 2025. It is now read-only.
1 .Input web3.eth.subscribe('newBlockHeaders').on('connected', console.log)
2. compile with Typescript
3. see error
Versions
Node -- v12.14.1
web3 -- v1.2.4
I think, it should be enough to add on(type: 'connected', handler: (subscriptionId: string) => void): Subscription<T>; to Subscription type declaration.
The text was updated successfully, but these errors were encountered:
Expected behavior
would be properly typed.
Actual behavior
Typescript error
No overload matches this call
Steps to reproduce the behavior
1 .Input
web3.eth.subscribe('newBlockHeaders').on('connected', console.log)
2. compile with Typescript
3. see error
Versions
Node -- v12.14.1
web3 -- v1.2.4
I think, it should be enough to add
on(type: 'connected', handler: (subscriptionId: string) => void): Subscription<T>;
to Subscription type declaration.The text was updated successfully, but these errors were encountered: