UNPKG

static-injector

Version:

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

19 lines (18 loc) 586 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'; import type { Injector } from './injector'; /** * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors. * * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a * project. * * @publicApi */ export declare const INJECTOR: InjectionToken<Injector>;