Skip to content

Commit

Permalink
fix assignability of ChannelSchema apis (#3632)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Sep 19, 2024
1 parent 6a32efb commit b86b47d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-planets-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/experimental": patch
---

fix assignability of ChannelSchema apis
6 changes: 3 additions & 3 deletions packages/experimental/src/ChannelSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const decodeUnknown: <A, I, R>(
schema: Schema.Schema<A, I, R>
) => <IE = never, Done = unknown>() => Channel.Channel<
Chunk.Chunk<A>,
Chunk.Chunk<unknown>,
Chunk.Chunk<any>,
ParseError | IE,
IE,
Done,
Expand Down Expand Up @@ -197,7 +197,7 @@ export const duplexUnknown: {
}): <R, InErr, OutErr, OutDone, InDone>(
self: Channel.Channel<
Chunk.Chunk<unknown>,
Chunk.Chunk<unknown>,
Chunk.Chunk<any>,
OutErr,
ParseError | InErr,
OutDone,
Expand All @@ -216,7 +216,7 @@ export const duplexUnknown: {
<R, InErr, OutErr, OutDone, InDone, IA, II, IR, OA, OI, OR>(
self: Channel.Channel<
Chunk.Chunk<unknown>,
Chunk.Chunk<unknown>,
Chunk.Chunk<any>,
OutErr,
ParseError | InErr,
OutDone,
Expand Down

0 comments on commit b86b47d

Please sign in to comment.