From ee4fc228ce208a24bc4c716bf5e4097787c4c9fa Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:10:49 +0100 Subject: [PATCH] chore(internal): add explicit type annotation to decoder (#324) --- src/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming.ts b/src/streaming.ts index e525a570..a60ae2c5 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -390,7 +390,7 @@ class LineDecoder { /** This is an internal helper function that's just used for testing */ export function _decodeChunks(chunks: string[]): string[] { const decoder = new LineDecoder(); - const lines = []; + const lines: string[] = []; for (const chunk of chunks) { lines.push(...decoder.decode(chunk)); }