UNPKG

static-injector

Version:

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

18 lines (17 loc) 520 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 { AbstractType, Type } from '../interface/type'; import { InjectionToken } from './injection_token'; /** * @description * * Token that can be used to retrieve an instance from an injector or through a query. * * @publicApi */ export type ProviderToken<T> = Type<T> | AbstractType<T> | InjectionToken<T>;