Skip to content

Commit

Permalink
fix: notEmpty generic
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Dec 3, 2023
1 parent 319b9b9 commit b9a7817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notEmpty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const identityTransform = <T>(
controller.enqueue(chunk);
};

export const notEmpty = (
export const notEmpty = <T>(
error: Error = new Error("Stream is empty"),
writableStrategy?: QueuingStrategy,
readableStrategy?: QueuingStrategy,
Expand All @@ -23,7 +23,7 @@ export const notEmpty = (
transform = identityTransform;
};

return new TransformStream(
return new TransformStream<T, T>(
{
transform,
flush() {
Expand Down

0 comments on commit b9a7817

Please sign in to comment.