UNPKG

static-injector

Version:

Angular 依赖注入独立版本;Angular dependency injection standalone version

23 lines (22 loc) 757 B
/** * @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.dev/license */ import { InjectionToken } from './injection_token'; /** * A multi-provider token for initialization functions that will run upon construction of an * environment injector. * * @deprecated from v19.0.0, use provideEnvironmentInitializer instead * * @see {@link provideEnvironmentInitializer} * * Note: As opposed to the `APP_INITIALIZER` token, the `ENVIRONMENT_INITIALIZER` functions are not awaited, * hence they should not be `async`. * * @publicApi */ export declare const ENVIRONMENT_INITIALIZER: InjectionToken<readonly (() => void)[]>;