I recently came across the following function declaration
subscribe(observerOrNext?: PartialObserver<T> | ((value: T) => void), error?: (error: any) => void, complete?: () => void): Subscription;
I understand that '?' means optional , but what does the rest mean, especially the
: PartialObserver<T> | ((value: T) => void) part?