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 committed Apr 10, 2016
1 parent dd01279 commit 0232b2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 0232b2b

Please sign in to comment.