from-event-outside-angular.d.ts 633 B

1234567891011
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Observable } from 'rxjs';
  6. /**
  7. * This function replaces `runOutsideAngular` with `fromEvent`, introducing a
  8. * lot of boilerplate where we need to inject the `NgZone` service and then subscribe
  9. * to `fromEvent` within the `runOutsideAngular` callback.
  10. */
  11. export declare function fromEventOutsideAngular<TEvent extends Event>(target: EventTarget | null | undefined, name: string, options?: boolean | AddEventListenerOptions): Observable<TEvent>;