The return types of functions parseChunk and flush are incorrectly typed as Iterator<T> in Typescript declarations while it is supposed to be Iterable<T>!
This makes Typescript error out for spread operator ... as well as for loops.
I can make the change if PR's are welcomed.
Thanks.