staltz / xstream

An extremely intuitive, small, and fast functional reactive stream library for JavaScript
http://staltz.github.io/xstream/
MIT License
2.38k stars 137 forks source link

feat: add never and empty <T = any> param #307

Closed wclr closed 4 years ago

wclr commented 4 years ago

This would allow such things without typing issues:

declare const $some: Stream<number> | undefined

($some || xs.empty<number>()).map(x => -x)
staltz commented 4 years ago

Thanks!

wclr commented 4 years ago

@staltz will you publish this? seems not breaking)

staltz commented 4 years ago

Thanks for the reminder. 11.13.0 is out :+1: