Skip to content

Commit

Permalink
chore(typings): update type definition for concatAll
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and staltz committed Apr 13, 2016
1 parent eac28ca commit 33ec0ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Observable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PartialObserver, Observer} from './Observer';
import {PartialObserver} from './Observer';
import {Operator} from './Operator';
import {Subscriber} from './Subscriber';
import {Subscription, AnonymousSubscription, TeardownLogic} from './Subscription';
Expand All @@ -10,7 +10,9 @@ import {IfObservable} from './observable/IfObservable';
import {ErrorObservable} from './observable/ErrorObservable';

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

export type SubscribableOrPromise<T> = Subscribable<T> | Promise<T>;
Expand Down
2 changes: 2 additions & 0 deletions src/operator/concatAll.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Subscribable} from '../Observable';
import {MergeAllOperator} from './mergeAll';

/**
Expand Down Expand Up @@ -48,4 +49,5 @@ export function concatAll<T>(): T {

export interface ConcatAllSignature<T> {
(): T;
<R>(): Subscribable<R>;
}

0 comments on commit 33ec0ad

Please sign in to comment.