declarations
Version:
[](https://www.npmjs.com/package/declarations)
19 lines (14 loc) • 621 B
TypeScript
// Type definitions for Zone.js
// Project: https://github.com/angular/zone.js
// Definitions by: angular team <https://github.com/angular/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare class Zone {
constructor(parentZone: Zone, data: any);
fork(locals?: {[key: string]: any}): Zone;
bind(fn: Function, skipEnqueue?: boolean): void;
bindOnce(fn: Function): any;
run(fn: Function, applyTo?: any, applyWith?: any): void;
isRootZone(): boolean;
static bindPromiseFn<T extends () => Promise<any>>(fn: T): T;
static longStackTraceZone: {[key: string]: any};
}