[streams] type of Chunk.value? (#409)

Hi,

  how is one meant to know what the value of a chunk is going to be? Does that depend on the function that returns chunks? If a chunk can return any type of object then would this not require each piece of code to write long statements of the form

```scala
if ( chunk.value.isInstanceOf[UInt8Array]) { ... }
else if ( chunk.value.isInstanceOf[js.Array]) { ... }
...
```

Any ideas?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/409

Received on Wednesday, 2 December 2015 11:55:08 UTC