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 7, 2024
1 parent 4688ef4 commit d728e99
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 d728e99

Please sign in to comment.