diff --git a/src/internal/types.ts b/src/internal/types.ts index f29cae4194..9581f98ccb 100644 --- a/src/internal/types.ts +++ b/src/internal/types.ts @@ -39,9 +39,8 @@ export type SubscribableOrPromise = Subscribable | Subscribable | P /** OBSERVABLE INTERFACES */ export interface Subscribable { - subscribe(observerOrNext?: PartialObserver | ((value: T) => void), - error?: (error: any) => void, - complete?: () => void): Unsubscribable; + subscribe(observer?: PartialObserver): Unsubscribable; + subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable; } export type ObservableInput = SubscribableOrPromise | ArrayLike | Iterable;