zone.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { EventTask as _EventTask, HasTaskState as _HasTaskState, MacroTask as _MacroTask, MicroTask as _MicroTask, PatchFn, Task as _Task, TaskData as _TaskData, TaskState as _TaskState, TaskType as _TaskType, UncaughtPromiseError as _UncaughtPromiseError, Zone as _Zone, ZoneDelegate as _ZoneDelegate, ZoneFrame, ZonePrivate, ZoneSpec as _ZoneSpec, ZoneType as _ZoneType } from './zone-impl';
  9. declare global {
  10. const Zone: ZoneType;
  11. type Zone = _Zone;
  12. type ZoneType = _ZoneType;
  13. type _PatchFn = PatchFn;
  14. type _ZonePrivate = ZonePrivate;
  15. type _ZoneFrame = ZoneFrame;
  16. type UncaughtPromiseError = _UncaughtPromiseError;
  17. type ZoneSpec = _ZoneSpec;
  18. type ZoneDelegate = _ZoneDelegate;
  19. type HasTaskState = _HasTaskState;
  20. type TaskType = _TaskType;
  21. type TaskState = _TaskState;
  22. type TaskData = _TaskData;
  23. type Task = _Task;
  24. type MicroTask = _MicroTask;
  25. type MacroTask = _MacroTask;
  26. type EventTask = _EventTask;
  27. /**
  28. * Extend the Error with additional fields for rewritten stack frames
  29. */
  30. interface Error {
  31. /**
  32. * Stack trace where extra frames have been removed and zone names added.
  33. */
  34. zoneAwareStack?: string;
  35. /**
  36. * Original stack trace with no modifications
  37. */
  38. originalStack?: string;
  39. }
  40. }
  41. export declare function loadZone(): ZoneType;