- From: Adam Rice <notifications@github.com>
- Date: Wed, 12 Apr 2017 02:34:36 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 April 2017 09:35:16 UTC
@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