feat(experiment): named tuples#281
Conversation
🦋 Changeset detectedLatest commit: d186346 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 26 26
Lines 6166 6166
Branches 195 195
=======================================
Hits 6160 6160
Misses 5 5
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
spreading individual named tuples might be a better strategy |
ca740b2 to
1099e41
Compare
it is! |
|
Size Change: +1.4 kB (+1.2%) Total Size: 118 kB
ℹ️ View Unchanged
|
1099e41 to
33d0b80
Compare
33d0b80 to
42ea6a7
Compare
commit: |
794aca9 to
79115a7
Compare
aecc9d9 to
33d59da
Compare
18d0457 to
ed96f39
Compare
ed96f39 to
d104da1
Compare
325a2f4 to
351d927
Compare
3f28f0c to
4be7ef8
Compare
4be7ef8 to
e56c1fa
Compare
e56c1fa to
d186346
Compare
Since TypeScript can't dynamically generate tuple labels and labels would drastically improve the developer experience of positional arguments, this PR explores a strategy for adding tuple labels for common ABI parameter names.
Performance is a bit worse, since we have to use tail recursion instead of a mapped type, but it's not so bad that this isn't a viable approach.