You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript 5.9: FFlateCallback needs a tighter data argument #242
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'BlobPart'.
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'ArrayBufferView<ArrayBuffer>'.
Types of property 'buffer' are incompatible.
Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength
I've noticed the same thing in regards to the return type of gunzipSync. It would be nice if it could be switched to Uint8Array<ArrayBuffer>, though I'm not sure if that's actually possible considering you can pass in the output buffer in the options.
Or perhaps you could have two function signatures?
Activity
Exac commentedon Nov 11, 2025
Related: microsoft/TypeScript#62546
101arrowz commentedon Feb 9, 2026
Assuming the suggestion is to switch the type to explicit
Uint8Array<ArrayBuffer>, this should be doable in the next update.curiousdannii commentedon Apr 11, 2026
I've noticed the same thing in regards to the return type of
gunzipSync. It would be nice if it could be switched toUint8Array<ArrayBuffer>, though I'm not sure if that's actually possible considering you can pass in the output buffer in the options.Or perhaps you could have two function signatures?
Fix TypeScript issues (#242)
101arrowz commentedon May 16, 2026
Fixed in v0.8.3, thanks for reporting!