Skip to content

Add byte stream bounds to related WebTransport stream properties - #2606

Open
Martin Ferret (MartinFerret) wants to merge 1 commit into
microsoft:mainfrom
MartinFerret:webtransport-related-stream-types
Open

Martin Ferret (MartinFerret) wants to merge 1 commit into
microsoft:mainfrom
MartinFerret:webtransport-related-stream-types

Conversation

@MartinFerret

Copy link
Copy Markdown
Contributor

Follow-up to #2596.

These members still used plain streams, so their chunks were any:

  • WebTransportBidirectionalStream.readable: ReadableStream<Uint8Array<ArrayBuffer>>
  • WebTransportBidirectionalStream.writable: WritableStream<BufferSource>
  • WebTransport.createUnidirectionalStream(): Promise<WritableStream<BufferSource>>

Plain streams are kept on purpose (only Gecko returns the subclasses), I only added the chunk types. I left WebTransportDatagramDuplexStream.writable alone since it's no longer in the spec :).

The ts5.5/ts5.6 outputs get a plain Uint8Array. The unit test fails without the patch, npm test passes, and the baselines compile on TS 5.5.4, 5.6.3 and 5.9.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant