fromEventPattern.d.ts 557 B

12345
  1. import { Observable } from '../Observable';
  2. import { NodeEventHandler } from './fromEvent';
  3. export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void): Observable<T>;
  4. /** @deprecated resultSelector no longer supported, pipe to map instead */
  5. export declare function fromEventPattern<T>(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void, resultSelector?: (...args: any[]) => T): Observable<T>;