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

Request : swap Error and Success type params + make Effect.request dual #2238

Merged
merged 6 commits into from
Mar 4, 2024

Conversation

JJayet
Copy link
Contributor

@JJayet JJayet commented Mar 1, 2024

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

As discussed on this message https://discord.com/channels/795981131316985866/795983589644304396/1212891296944103424

Should the type param order for Request.TaggedClass be swapped? It's currently <Error, Success, A> instead of <Success, Error, A>.

Since the message author did not respond to @mikearnaldi, I created the PR.

@JJayet JJayet requested a review from mikearnaldi as a code owner March 1, 2024 15:33
Copy link

changeset-bot bot commented Mar 1, 2024

🦋 Changeset detected

Latest commit: e978ba1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
effect Patch
@effect/cli Patch
@effect/experimental Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/platform Patch
@effect/printer-ansi Patch
@effect/printer Patch
@effect/rpc-http Patch
@effect/rpc Patch
@effect/schema Patch
@effect/typeclass Patch

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

@JJayet JJayet changed the title refactor(Request): swap Error and Success type params to match new Effect style Request : swap Error and Success type params + make Effect.request dual Mar 1, 2024
@mikearnaldi
Copy link
Member

impl seems broken, can you add a test pls

@JJayet
Copy link
Contributor Author

JJayet commented Mar 4, 2024

My bad @mikearnaldi this is fixed now.

@mikearnaldi mikearnaldi merged commit 6137533 into Effect-TS:main Mar 4, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Mar 4, 2024
@JJayet JJayet deleted the chore/request_params branch March 11, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants