Skip to content

Commit

Permalink
fix incorrect stream type for flatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
andogq committed Apr 16, 2024
1 parent 70f3620 commit 56147df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-planets-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"windpipe": patch
---

fix incorrect stream type for `flatTap`
2 changes: 1 addition & 1 deletion src/stream/higher-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class HigherOrderStream<T, E> extends StreamTransforms<T, E> {
*
* @group Higher Order
*/
flatTap(cb: (value: T) => MaybePromise<MaybeAtom<Stream<T, E>, E>>): Stream<T, E> {
flatTap(cb: (value: T) => MaybePromise<MaybeAtom<Stream<unknown, unknown>, E>>): Stream<T, E> {
const trace = this.trace("flatTap");

return this.consume(async function* (it) {
Expand Down

0 comments on commit 56147df

Please sign in to comment.