The upside is we can then support more. The downside is if we decide we need to rely on the returned value of the then function, It'll require a breaking change.
Implementor note: We probably don't want to publicly expose Thennable, I'm sure a lot of folks already have that implemented in their codebase. It's been a mistake that we export * from types, honestly.
The type on
ObservableInput
is probably too strict.We'll want to support
Thennable<T>
instead, as that's all that is required to convert withfrom
et al.The upside is we can then support more. The downside is if we decide we need to rely on the returned value of the
then
function, It'll require a breaking change.Implementor note: We probably don't want to publicly expose
Thennable
, I'm sure a lot of folks already have that implemented in their codebase. It's been a mistake that we export*
from types, honestly.