Skip to content

Commit d728e99

Browse files
chore(internal): add explicit type annotation to decoder (#712)
1 parent 4688ef4 commit d728e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class LineDecoder {
375375
/** This is an internal helper function that's just used for testing */
376376
export function _decodeChunks(chunks: string[]): string[] {
377377
const decoder = new LineDecoder();
378-
const lines = [];
378+
const lines: string[] = [];
379379
for (const chunk of chunks) {
380380
lines.push(...decoder.decode(chunk));
381381
}

0 commit comments

Comments
 (0)