Re: [whatwg/webidl] Add typed ReadableStream<type> and WritableStream<type> (#951)

reillyeon left a comment (whatwg/webidl#951)

I'd like to revive this issue. @domenic was right that implementations do not currently type-check the chunks enqueued on streams. However, one of the largest uses of `ReadableStream` in particular are the streams created by the browser and consumed by script. It would improve ergonomics for TypeScript developers for WebIDL to define the chunk type for such streams. As mentioned, comments are not normative and since people are writing automatic converters from WebIDL to TypeScript type definitions it would be helpful for chunk types to be normatively specified somewhere other than only the algorithms.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/951#issuecomment-3774462786
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/951/3774462786@github.com>

Received on Tuesday, 20 January 2026 18:58:09 UTC