From b9a7817facf116076334b7b07057602e4e2c04fb Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Sun, 3 Dec 2023 19:48:05 +0100 Subject: [PATCH] fix: notEmpty generic --- src/notEmpty.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notEmpty.ts b/src/notEmpty.ts index a71e054..04177e4 100644 --- a/src/notEmpty.ts +++ b/src/notEmpty.ts @@ -5,7 +5,7 @@ const identityTransform = ( controller.enqueue(chunk); }; -export const notEmpty = ( +export const notEmpty = ( error: Error = new Error("Stream is empty"), writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy, @@ -23,7 +23,7 @@ export const notEmpty = ( transform = identityTransform; }; - return new TransformStream( + return new TransformStream( { transform, flush() {