@angular/cdk
Version:
Angular Material Component Development Kit
25 lines (21 loc) • 793 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/*
* Type definitions for "zone.js". We cannot reference the official types
* using a triple-slash types directive because the types would bring in
* the NodeJS types into the compilation unit. This would cause unexpected
* type checking failures. We just create minimal type definitions for Zone
* here and use these for our interceptor logic.
*/
declare global {
// tslint:disable-next-line:variable-name
const Zone: {current: any}|undefined;
}
export type Zone = Object;
export type ZoneDelegate = Object;
export type HasTaskState = {microTask: boolean, macroTask: boolean};