Skip to content

Commit

Permalink
fix(subscribable): make subscribe() signature match Observable
Browse files Browse the repository at this point in the history
Fixes #3891
  • Loading branch information
felixfbecker committed Aug 23, 2018
1 parent 9ea0ec9 commit 2ecf10b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ export type SubscribableOrPromise<T> = Subscribable<T> | Subscribable<never> | P
/** OBSERVABLE INTERFACES */

export interface Subscribable<T> {
subscribe(observerOrNext?: PartialObserver<T> | ((value: T) => void),
error?: (error: any) => void,
complete?: () => void): Unsubscribable;
subscribe(observer?: PartialObserver<T>): Unsubscribable;
subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Unsubscribable;
}

export type ObservableInput<T> = SubscribableOrPromise<T> | ArrayLike<T> | Iterable<T>;
Expand Down

0 comments on commit 2ecf10b

Please sign in to comment.