2018-11-22 16:41:46 +01:00
|
|
|
import { Observable } from '../Observable';
|
2019-06-04 14:29:48 +02:00
|
|
|
import { NodeEventHandler } from './fromEvent';
|
|
|
|
export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void): Observable<T>;
|
2018-11-22 16:41:46 +01:00
|
|
|
/** @deprecated resultSelector no longer supported, pipe to map instead */
|
2019-06-04 14:29:48 +02:00
|
|
|
export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void, resultSelector?: (...args: any[]) => T): Observable<T>;
|