ksm2 / isomorphic-streams

Isomorphic WHATWG Streams API package for browser and Node.js
MIT License
14 stars 3 forks source link

Missing type declaration for static method `from` #4

Open jordanrastrick opened 4 months ago

jordanrastrick commented 4 months ago

Hello,

Nice work, it's great to be able to use streaming in a library that might be used in either the back or front end.

One minor thing, the type declaration for the class ReadableStream is missing the static method from. It should look something like:

export class ReadableStream<T> {
  // ...
  static from(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>
  // ...
}

Cheers.