Skip to content

Commit

Permalink
refactor(toPromise): update type definition for toPromise
Browse files Browse the repository at this point in the history
- make Promistctor parameter as optional in type definition

closes ReactiveX#864
  • Loading branch information
kwonoj committed Dec 2, 2015
1 parent 75abef1 commit 6ad92e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class Observable<T> implements CoreOperators<T> {
timeout: (due: number | Date, errorToSend?: any, scheduler?: Scheduler) => Observable<T>;
timeoutWith: <R>(due: number | Date, withObservable: Observable<R>, scheduler?: Scheduler) => Observable<T> | Observable<R>;
toArray: () => Observable<T[]>;
toPromise: (PromiseCtor: PromiseConstructor) => Promise<T>;
toPromise: (PromiseCtor?: PromiseConstructor) => Promise<T>;
window: (closingNotifier: Observable<any>) => Observable<Observable<T>>;
windowCount: (windowSize: number, startWindowEvery: number) => Observable<Observable<T>>;
windowTime: (windowTimeSpan: number, windowCreationInterval?: number, scheduler?: Scheduler) => Observable<Observable<T>>;
Expand Down

0 comments on commit 6ad92e5

Please sign in to comment.