Skip to content

Commit

Permalink
web-socket-handler: fix type for TypeScript update
Browse files Browse the repository at this point in the history
The TypeScript 5.7.2 update does not like one of the types.
This commit updates the bad type.

Refs: kubernetes-client#2050
  • Loading branch information
cjihrig committed Dec 4, 2024
1 parent b165a02 commit 75818e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-socket-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function copyChunkForWebSocket(
encoding ??= 'utf-8';
const size = Buffer.byteLength(chunk, encoding);
buff = Buffer.alloc(size + 1);
buff.write(chunk, 1, size, encoding);
buff.write(chunk as string, 1, size, encoding);
}

buff.writeInt8(streamNum, 0);
Expand Down

0 comments on commit 75818e8

Please sign in to comment.