From 9157b7e52b8cf53ef13b582a01fb62078a9ebf3f Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 7 Mar 2024 20:10:45 +0000 Subject: [PATCH] chore(internal): add explicit type annotation to decoder --- src/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming.ts b/src/streaming.ts index 7b0466a3c..f90c5d89a 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -375,7 +375,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)); }