fix(types): add explicit ArrayBuffer type assertions for compression
- Add explicit type casting to resolve SharedArrayBuffer compatibility - Ensures clean compilation without TypeScript warnings
This commit is contained in:
parent
6effaaec74
commit
e24ef56f0c
1 changed files with 3 additions and 3 deletions
|
|
@ -374,11 +374,11 @@ export class ReadOnlyOptimizations {
|
|||
// Apply metadata compression
|
||||
switch (this.config.compression.metadataCompression) {
|
||||
case CompressionType.GZIP:
|
||||
return this.gzipCompress(data.buffer.slice(0))
|
||||
return this.gzipCompress(data.buffer.slice(0) as ArrayBuffer)
|
||||
case CompressionType.BROTLI:
|
||||
return this.brotliCompress(data.buffer.slice(0))
|
||||
return this.brotliCompress(data.buffer.slice(0) as ArrayBuffer)
|
||||
default:
|
||||
return data.buffer.slice(0)
|
||||
return data.buffer.slice(0) as ArrayBuffer
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue