Re: [whatwg/streams] JSIDL vs WebIDL (#45)

@SaschaNaz Nitpicking, there are some things in that file which are more restrictive than the standard actually requires. In some cases, this is probably useful, for example:

```
write?(chunk: any, controller?: WritableStreamDefaultController): void | Promise<any>;
```
You can return a thenable or actually anything you want from `write()`. So in practice the return type is `any`. However, the restriction imposed by the type checker is probably useful in catching bugs.

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

Received on Wednesday, 12 April 2017 09:35:16 UTC