Re: [heycam/webidl] ReadableStream IDL type (#445)

What needs to be done here? Adding a new wrapper-style definition for `ReadableStream` (à la `ArrayBuffer`) as a type to Web IDL? Or redefine `ReadableStream` with an IDL fragment in Streams (which has its own problems, such as method enumerability differences)?

Or would it be sufficient to simply have something like the following in the Streams Standard:

> ### Web IDL Integration
> ```webidl
> [NoInterfaceObject, Exposed=(Window,Worker)]
> interface ReadableStream {};
>
> [NoInterfaceObject, Exposed=(Window,Worker)]
> interface WritableStream {};
>
> [NoInterfaceObject, Exposed=(Window,Worker)]
> interface TransformStream {};
> ```
>
> A [platform object](https://heycam.github.io/webidl/#dfn-platform-object) *V* **implements `ReadableStream`** if [IsReadableStream](https://streams.spec.whatwg.org/#is-readable-stream)(*V*) returns true.
>
> A [platform object](https://heycam.github.io/webidl/#dfn-platform-object) *V* **implements `WritableStream`** if [IsWritableStream](https://streams.spec.whatwg.org/#is-writable-stream)(*V*) returns true.
>
> A [platform object](https://heycam.github.io/webidl/#dfn-platform-object) *V* **implements `TransformStream`** if [IsTransformStream](https://streams.spec.whatwg.org/#is-transform-stream)(*V*) returns true.

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

Received on Sunday, 3 December 2017 06:25:13 UTC