Closed
Description
lib Update Request
The problem is that proper types are not available when Resizable ArrayBuffer
need to be created by passing options
in the constructor.
Configuration Check
My compilation target is ESnext
and my lib is the default
.
Missing / Incorrect Definition
ArrayBuffer
Constructor signature.
Sample Code
const buff = new ArrayBuffer(10, {
maxByteLength: 100,
});
console.debug(buff.resizable);
console.debug(buff.byteLength);
buff.resize(100);
console.debug(buff.byteLength);
Documentation Link
You can check the signature over here.
Activity
RyanCavanaugh commentedon Jun 14, 2023
Please post code, not screenshots of code.
This isn't part of a merged ECMAScript 2015, see https://github.com/tc39/proposal-resizablearraybuffer . This needs to go into ESnext first.
indrajitbnikam commentedon Jun 14, 2023
Sorry about the screenshots. I'll update the description with code.
julien-c commentedon Mar 11, 2024
Note that https://github.com/tc39/proposal-resizablearraybuffer has landed in the spec now. So I think we could move ahead with this now?
guest271314 commentedon Jul 21, 2024
Reproducible in TypeScript playground
TypeScript error
guest271314 commentedon Jul 24, 2024
What's the status on this?