mock-ng-zone.d.ts 914 B

123456789101112131415161718192021222324
  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 { EventEmitter, NgZone } from '@angular/core';
  6. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  7. import * as i0 from "@angular/core";
  8. /**
  9. * Mock synchronous NgZone implementation that can be used
  10. * to flush out `onStable` subscriptions in tests.
  11. *
  12. * via: https://github.com/angular/angular/blob/master/packages/core/testing/src/ng_zone_mock.ts
  13. *
  14. * @docs-private
  15. */
  16. export declare class MockNgZone extends NgZone {
  17. onStable: EventEmitter<any>;
  18. constructor();
  19. run(fn: () => NzSafeAny): NzSafeAny;
  20. runOutsideAngular(fn: () => NzSafeAny): NzSafeAny;
  21. simulateZoneExit(): void;
  22. static ɵfac: i0.ɵɵFactoryDeclaration<MockNgZone, never>;
  23. static ɵprov: i0.ɵɵInjectableDeclaration<MockNgZone>;
  24. }