-
-
Notifications
You must be signed in to change notification settings - Fork 839
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: do not use generic type variables for getAbiItem return type #365
Conversation
🦋 Changeset detectedLatest commit: db822ea The changes in this PR will be included in the next version bump. 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 Git ↗︎
|
Size Change: 0 B Total Size: 246 kB ℹ️ View Unchanged
|
Co-authored-by: awkweb <tom@meagher.co>
Codecov Report
@@ Coverage Diff @@
## main #365 +/- ##
==========================================
- Coverage 99.89% 99.88% -0.01%
==========================================
Files 264 264
Lines 19714 19715 +1
Branches 1845 1848 +3
==========================================
Hits 19693 19693
- Misses 19 20 +1
Partials 2 2
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
It's imho good practice to avoid using generic type variables directly in return types. It creates a chicken & egg scenario when the return of such a function is then used in another generic function's input as seen in #359
Automated Summary
🤖 Generated by Copilot at db822ea
This pull request fixes the
getAbiItem
function to simplify its type signature and return type. It also adds a changeset file to document the patch version update and the bug fix for theviem
package.