Skip to content

Conversation

@steveluscher
Copy link
Contributor

@steveluscher steveluscher commented Mar 11, 2023

Summary

@joncinque pointed out in #1190 that the Typescript types of @solana/rpc-core relied on a cast through unknown to work. The more I thought about it the more I realized that the transport shouldn't form part of the typespec for the RPC.

In this PR we remove it from the source types, and map it back in where it's needed in the implementation..

…the RPC

# Summary

@joncinque pointed out in #1190 that the Typescript types of `@solana/rpc-core` relied on a cast through `unknown` to work. The more I thought about it the more I realized that the `transport` shouldn't form part of the typespec for the RPC.

In this PR we remove it from the source types, and map it back in where it's needed in the implementation..
@steveluscher steveluscher merged commit 1a51843 into master Mar 11, 2023
@steveluscher steveluscher deleted the pr1196 branch March 11, 2023 01:59
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Nice job fixing up the types! Looks good

@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.73.4 🎉

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 Mar 31, 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.

3 participants