Skip to content

Commit

Permalink
chore(internal): add explicit type annotation to decoder (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Mar 13, 2024
1 parent 50206a0 commit c71ad70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit c71ad70

Please sign in to comment.