Closed
Description
In RxJS, we have a need for an interface that is basically this:
interface Observer<T> {
next?: (value: T) => void;
error?: (err: any) => void;
complete?: () => void;
}
but you'll notice that it matches {}
in that case, which isn't what we want. What we really want is at least one of those members.
It seems like I'd be able to do something with PartialObserver<T> = NextObserver<T>|ErrorObserver|CompleteObserver
, but I'm honestly not sure how to accomplish this.