Receives a completion notification.
Optional
value: unknownOptional completion value. This is not documented in the spec but used in the specs unit tests.
Receives the sequence error.
The error.
Receives the subscription object when subscribe
is called.
The subscription object.
Observer interface type. It is constructed as a union type to ensure that at least one of the next/error/complete properties is set.