Skip to content

Commit 7b93dd6

Browse files
Fix HttpApiGroup.addError signature (#3962)
1 parent 6b0d737 commit 7b93dd6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/witty-boxes-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/platform": patch
3+
---
4+
5+
fix HttpApiGroup.addError signature

packages/platform/src/HttpApiGroup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ export interface HttpApiGroup<
6666
* Add an error schema to an `HttpApiGroup`, which is shared by all endpoints in the
6767
* group.
6868
*/
69-
addError<A, I, R>(
70-
schema: Schema.Schema<A, I, R>,
69+
addError<A, I, RX>(
70+
schema: Schema.Schema<A, I, RX>,
7171
annotations?: {
7272
readonly status?: number | undefined
7373
}
74-
): HttpApiGroup<Id, Endpoints, Error | A, R | R, TopLevel>
74+
): HttpApiGroup<Id, Endpoints, Error | A, R | RX, TopLevel>
7575

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

0 commit comments

Comments
 (0)