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)); }