-
Notifications
You must be signed in to change notification settings - Fork 134
Remove BaseTransactionMessage from transaction-message blockhash functions #1134
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
base: decompile-with-lookups-type
Are you sure you want to change the base?
Conversation
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
| 'lifetimeConstraint' | ||
| >; | ||
| export type ExcludeTransactionMessageLifetime<TTransactionMessage extends TransactionMessage> = | ||
| TTransactionMessage extends unknown ? Omit<TTransactionMessage, 'lifetimeConstraint'> : never; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flagging this here, but this pattern is used a lot through the stack
This is a trick to make Typescript distribute over the union type, ie not collapse the version. We use it in this stack whenever we use Omit<TTransactionVersion, ...>
7ba1862 to
bd589ff
Compare
BundleMonUnchanged files (136)
No change in files bundle size Final result: ✅ View report in BundleMon website ➡️ |
bd589ff to
875e87c
Compare
|
Documentation Preview: https://kit-docs-7yl4lpth5-anza-tech.vercel.app |
steveluscher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
901a7cd to
d76d1f2
Compare
875e87c to
6d29dab
Compare
Problem
Our
TransactionMessagefunctions operate onBaseTransactionMessageinstead ofTransactionMessage, which limits the ability to type narrow the resulting transaction messagesSummary of Changes
TransactionMessagein input/output typesPart of a stack that eventually supersedes #1103