From 71d90b41e0aec03aba3390ae59c96fe75b6173a1 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Tue, 13 Oct 2015 20:46:24 -0700 Subject: [PATCH] fix(fromEvent): make selector argument optional in fromEvent static method This makes it consistent with the signature of the implementation. --- src/Observable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Observable.ts b/src/Observable.ts index 9f6601d91a..faa9ced56d 100644 --- a/src/Observable.ts +++ b/src/Observable.ts @@ -138,7 +138,7 @@ export default class Observable implements CoreOperators { static forkJoin: (...observables: Observable[]) => Observable; static from: (iterable: any, scheduler?: Scheduler) => Observable; static fromArray: (array: T[], scheduler?: Scheduler) => Observable; - static fromEvent: (element: any, eventName: string, selector: (...args:Array) => T) => Observable; + static fromEvent: (element: any, eventName: string, selector?: (...args:Array) => T) => Observable; static fromEventPattern: (addHandler: (handler:Function)=>void, removeHandler: (handler:Function) => void, selector?: (...args:Array) => T) => Observable; static fromPromise: (promise: Promise, scheduler?: Scheduler) => Observable; static interval: (interval: number, scheduler?: Scheduler) => Observable;