-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed as not planned
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
🔎 Search Terms
ArrayBufferLike BlobPart SharedArrayBuffer ES2024
🕗 Version & Regression Information
- This changed between versions
5.7.2
and5.6.3
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
💻 Code
When targetting ES2024, the following code throws a type error:
const toBlob = (data: Uint8Array, type: string) => {
return new Blob([data.buffer], { type });
}
🙁 Actual behavior
Type 'ArrayBufferLike' is not assignable to type 'BlobPart'.
Type 'SharedArrayBuffer' is not assignable to type 'BlobPart'.
Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength
🙂 Expected behavior
Backwards compatibility with ES2023
Additional information about the issue
No response
Anatoly03, Emalton, agadzhalov and aloisklink
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug