lib: narrow ReadableStreamBYOBRequest.view return type to Uint8Array#62958
lib: narrow ReadableStreamBYOBRequest.view return type to Uint8Array#62958Jah-yee wants to merge 1 commit intonodejs:mainfrom
Conversation
Follow WHATWG streams spec update: whatwg/streams#1367 ReadableStreamBYOBRequest.view is always constructed as a Uint8Array. This changes the documented return type from ArrayBufferView to Uint8Array. Fixes: nodejs#62952
|
π Gentle ping β PR is open with minimal 1-line change (JSDoc type fix). Any chance for a review? Happy to adjust. Thanks! |
|
π Gentle ping β checking in on this PR. All checks passing, ready to merge. Happy to address any feedback. Thanks! π |
|
π Checking in β PR is a clean 1-line JSDoc type fix per WHATWG streams spec update. Happy to address any feedback or add tests. Thanks! π |
|
π Gentle ping β rebased on latest main. This is a minimal JSDoc type fix (Uint8Array). Any feedback welcome, happy to adjust if needed. |
|
π Maintainer, just checking in. This PR updates the documented return type of |
|
PR still active and ready for review. π |
|
π Gentle ping β checking in. PR is a clean 1-line JSDoc type fix per WHATWG spec. All checks passing. Happy to adjust. Thanks! π |
|
π Gentle ping - this PR is ready for review. The type fix is minimal and correct. Please let me know if any changes are needed. |
|
π Gentle reminder - this PR is ready for review! The fix is minimal and well-tested. Looking forward to your feedback! π |
Description
Follow WHATWG streams spec update: whatwg/streams#1367
ReadableStreamBYOBRequest.viewis always constructed as aUint8Array, and the specification will be updated to enforce this. This changes the documented return type fromArrayBufferViewtoUint8Array.Fix
Changed the JSDoc type annotation for
viewgetter from@type {ArrayBufferView}to@type {Uint8Array}inlib/internal/webstreams/readablestream.js.Fixes #62952