Skip to content

Commit c71ad70

Browse files
committed
chore(internal): add explicit type annotation to decoder (#712)
1 parent 50206a0 commit c71ad70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming.ts

Lines changed: 1 addition & 1 deletion
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)