cujojs / most

Ultra-high performance reactive programming
MIT License
3.49k stars 231 forks source link

Make subscribe callbacks optional in typings #548

Open vlinder opened 3 years ago

vlinder commented 3 years ago

Summary

Update docs and typescript typings to reflect that methods on the Observer all are optional.

Here is what is linked in the docs regarding the Observer: https://github.com/tc39/proposal-observable#observer

Flow types seem to be correct already.

https://github.com/cujojs/most/blob/bfed148f1bfd8bc06a972a2cb17599371d8da52f/src/index.js.flow#L50-L55

Todo