UNPKG

596 BTypeScriptView Raw
1import { InjectionToken } from './di';
2/**
3 * A function that will be executed when an application is initialized.
4 * @experimental
5 */
6export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
7/**
8 * A class that reflects the state of running {@link APP_INITIALIZER}s.
9 *
10 * @experimental
11 */
12export declare class ApplicationInitStatus {
13 private appInits;
14 private resolve;
15 private reject;
16 private initialized;
17 private _donePromise;
18 private _done;
19 constructor(appInits: (() => any)[]);
20 readonly done: boolean;
21 readonly donePromise: Promise<any>;
22}
23
\No newline at end of file