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 HttpApiGroup.addError signature #3962

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/witty-boxes-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/platform": patch
---

fix HttpApiGroup.addError signature
6 changes: 3 additions & 3 deletions packages/platform/src/HttpApiGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export interface HttpApiGroup<
* Add an error schema to an `HttpApiGroup`, which is shared by all endpoints in the
* group.
*/
addError<A, I, R>(
schema: Schema.Schema<A, I, R>,
addError<A, I, RX>(
schema: Schema.Schema<A, I, RX>,
annotations?: {
readonly status?: number | undefined
}
): HttpApiGroup<Id, Endpoints, Error | A, R | R, TopLevel>
): HttpApiGroup<Id, Endpoints, Error | A, R | RX, TopLevel>

/**
* Add a path prefix to all endpoints in an `HttpApiGroup`. Note that this will only
Expand Down