-
-
Notifications
You must be signed in to change notification settings - Fork 24
Effect.ensure* -> Effect.satisfies*
#644
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
Conversation
|
+1 for changing I would keep the |
|
Agree with @KhraksMamtsov if you wouldn't mind making that change, we can get this merged. |
|
@IMax153 done |
|
BTW, I think |
|
@KhraksMamtsov - perhaps we could also address #408 and add the satisfies combinators to |
|
@IMax153 Of course, with pleasure! |
|
I'm not sure about the parameter renaming, as we tend to use R everywhere for effect. But we are leaning into the services terminology for 4.0. Let's defer that to a separate potential PR but I'll still ping @mikearnaldi to give his 2 cents here. |
|
@IMax153 I added type constraints for PS. I also noticed that |
|
We can standardize this to satisfiesErrorType I think |
|
@KhraksMamtsov looking through the changes, let's make one last adjustment and standardize around satisfiesRequirementsType for now. We can change the naming layer if we decide services is better. But since Context doesn't exist in 4.0 I think using requirements for now makes the most sense. Then we can get this merged. |
|
@IMax153 done |
@KhraksMamtsov - you know what, I'm so sorry, but can we standardize around what you originally suggested? I'm realizing we've modified the names of other combinators that accessed context to services, so that's probably the most consistent. I'm really sorry for the back and forth. Thanks for your help on this. |
|
@IMax153 no problem — that’s part of the workflow :) |
Sigh - it is, my apologies. That's what I get for responding when I'm over tired 😅 |
|
It seems to be ready |
IMax153
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.
Looks like a few docgen issues need resolution from CI.
Co-authored-by: Maxwell Brown <[email protected]>
Co-authored-by: Maxwell Brown <[email protected]>
Co-authored-by: Maxwell Brown <[email protected]>
IMax153
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.
I missed one - I'll just apply this.
Bundle Size Analysis
|
📊 JSDoc Documentation Analysis📈 Current Analysis ResultsThis comment is automatically updated on each push. View the analysis script for details. |
I’d like to suggest changing the name for this family of functions.
It seems to be a clear and well-established term (
satisfies) in TypeScript, and it would be better to use it.Type
Description
Related