We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50206a0 commit c71ad70Copy full SHA for c71ad70
src/streaming.ts
@@ -375,7 +375,7 @@ class LineDecoder {
375
/** This is an internal helper function that's just used for testing */
376
export function _decodeChunks(chunks: string[]): string[] {
377
const decoder = new LineDecoder();
378
- const lines = [];
+ const lines: string[] = [];
379
for (const chunk of chunks) {
380
lines.push(...decoder.decode(chunk));
381
}
0 commit comments