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: allow liquidMethodMissing to return any supported value type #698

Merged
merged 2 commits into from
May 22, 2024

Conversation

admtnnr
Copy link
Contributor

@admtnnr admtnnr commented May 18, 2024

The issue is that the type of liquidMethodMissing is too restrictive and only allows returning string rather than any supported value type. I ran into this issue when trying to return a Drop from liquidMethodMissing to enable dynamic lookups along an entire accessor chain.

src/drop/drop.ts Outdated Show resolved Hide resolved
Co-authored-by: Jun Yang <harttleharttle@gmail.com>
@admtnnr admtnnr requested a review from harttle May 19, 2024 11:56
@admtnnr
Copy link
Contributor Author

admtnnr commented May 22, 2024

@harttle I think I addressed your single piece of feedback, let me know if there's anything else you'd like changed!

@harttle harttle merged commit 0983f2c into harttle:master May 22, 2024
11 checks passed
@harttle
Copy link
Owner

harttle commented May 22, 2024

@all-contributors please add @admtnnr for code

Copy link
Contributor

@harttle

I've put up a pull request to add @admtnnr! 🎉

github-actions bot pushed a commit that referenced this pull request May 24, 2024
## [10.13.1](v10.13.0...v10.13.1) (2024-05-24)

### Bug Fixes

* allow liquidMethodMissing to return any supported value type ([#698](#698)) ([0983f2c](0983f2c))
* isComparable full interface check ([#701](#701)) ([55e144a](55e144a))
Copy link

🎉 This PR is included in version 10.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants