Skip to content

Commit

Permalink
fix(fromEvent): make selector argument optional in fromEvent static m…
Browse files Browse the repository at this point in the history
…ethod

This makes it consistent with the signature of the implementation.
  • Loading branch information
jeffbcross committed Oct 14, 2015
1 parent 06fc120 commit 71d90b4
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 @@ -138,7 +138,7 @@ export default class Observable<T> implements CoreOperators<T> {
static forkJoin: <T>(...observables: Observable<any>[]) => Observable<T>;
static from: <T>(iterable: any, scheduler?: Scheduler) => Observable<T>;
static fromArray: <T>(array: T[], scheduler?: Scheduler) => Observable<T>;
static fromEvent: <T>(element: any, eventName: string, selector: (...args:Array<any>) => T) => Observable<T>;
static fromEvent: <T>(element: any, eventName: string, selector?: (...args:Array<any>) => T) => Observable<T>;
static fromEventPattern: <T>(addHandler: (handler:Function)=>void, removeHandler: (handler:Function) => void, selector?: (...args:Array<any>) => T) => Observable<T>;
static fromPromise: <T>(promise: Promise<T>, scheduler?: Scheduler) => Observable<T>;
static interval: (interval: number, scheduler?: Scheduler) => Observable<number>;
Expand Down

0 comments on commit 71d90b4

Please sign in to comment.