Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty optional config object to RPC methods with no params #1401

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

mcintyre94
Copy link
Collaborator

This fixes an issue where TS incorrectly types their returns as unknown

We now get the correct response type:
Screenshot 2023-07-14 at 14 43 55

Closes #1389 (with a workaround)

Copy link
Collaborator

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy-1

…ds with no params

This fixes an issue where TS incorrectly types their returns as `unknown`

See solana-labs#1389
@mcintyre94 mcintyre94 merged commit 6b66b7d into solana-labs:master Jul 18, 2023
6 checks passed
@mcintyre94 mcintyre94 deleted the fix-unknown branch July 18, 2023 14:38
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.78.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experimental web3js: RPC methods with no inputs are typed unknown
2 participants