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

fix: don't rely on explicit export of TransactionCtorFields type #205

Closed
wants to merge 1 commit into from
Closed

fix: don't rely on explicit export of TransactionCtorFields type #205

wants to merge 1 commit into from

Conversation

steveluscher
Copy link

@steveluscher steveluscher commented Jun 2, 2022

This is our bad. We:

  1. Over-export fundamentally private types from @solana/web3.js just so that TypeDoc can generate documentation for them. This has to stop.
  2. Didn't stop to think that someone might have imported those types for use.

In this PR I replace the recently-renamed TransactionCtorFields type with a type that derives it, for all current and future versions of web3.js. This will not break again, no matter how many times the parameter gets renamed.

Fixes #202.

@steveluscher
Copy link
Author

Please also ship metaplex-foundation/metaplex-program-library#507.

@lorisleiva
Copy link
Contributor

As discussed, I'm closing this PR since we are deprecating this SDK in favour of the new one.

@lorisleiva lorisleiva closed this Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'"@solana/web3.js"' has no exported member 'TransactionCtorFields'.
2 participants