repeaterjs / repeater

The missing constructor for creating safe async iterators
https://repeater.js.org
MIT License
459 stars 12 forks source link

Repeater.race typings are incorrect #64

Closed brainkim closed 4 years ago

brainkim commented 4 years ago

Promises which are passed to Repeater.race are added to the inferred yield of the returned iterator. It should be added to the return value instead somehow.

brainkim commented 4 years ago

Can’t reproduce when testing types. It seems like inference works as expected.