Merge pull request #2992 from murgatroid99/grpc-js_fix_buffer_type_1.9.x

grpc-js: Declare buffer type to avoid build error (1.9.x)
This commit is contained in:
Michael Lumish 2025-08-04 11:06:08 -07:00 committed by GitHub
commit 1aec8d8992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ abstract class CompressionHandler {
*/
async readMessage(data: Buffer): Promise<Buffer> {
const compressed = data.readUInt8(0) === 1;
let messageBuffer = data.slice(5);
let messageBuffer: Buffer<ArrayBufferLike> = data.slice(5);
if (compressed) {
messageBuffer = await this.decompressMessage(messageBuffer);
}