source: trip-planner-front/node_modules/@angular/cdk/testing/testbed/proxy-zone-types.d.ts@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.0 KB
Line 
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
9/*
10 * Type definitions of the "ProxyZone" implementation provided by the
11 * ZoneJS testing bundles. These types are not part of the default ZoneJS
12 * typings, so we need to replicate them here. Usually they would go into
13 * the "zone-types.d.ts" file where other types are brought in as well, but
14 * since internally in Google, the original zone.js types will be used, there
15 * needs to be a separation of types which are replicated or the ones that can
16 * be pulled in from the original type definitions.
17 */
18
19export interface ProxyZoneStatic {
20 assertPresent: () => ProxyZone;
21 get(): ProxyZone;
22}
23
24export interface ProxyZone {
25 lastTaskState: HasTaskState|null;
26 setDelegate(spec: ZoneSpec): void;
27 getDelegate(): ZoneSpec;
28 onHasTask(delegate: ZoneDelegate, current: Zone, target: Zone, hasTaskState: HasTaskState): void;
29}
Note: See TracBrowser for help on using the repository browser.