Remove BaseTransactionMessage from transaction-message blockhash functions#1134
Conversation
|
| 'lifetimeConstraint' | ||
| >; | ||
| export type ExcludeTransactionMessageLifetime<TTransactionMessage extends TransactionMessage> = | ||
| TTransactionMessage extends unknown ? Omit<TTransactionMessage, 'lifetimeConstraint'> : never; |
There was a problem hiding this comment.
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-p568lwhml-anza-tech.vercel.app |
901a7cd to
d76d1f2
Compare
875e87c to
6d29dab
Compare
6d29dab to
f01cc24
Compare
d76d1f2 to
eb5d742
Compare
Merge activity
|
f01cc24 to
1d58d08
Compare
|
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. |


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