injection-js
Version:
Dependency Injection library for JavaScript and TypeScript
18 lines (17 loc) • 531 B
TypeScript
/**
* @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 './facade/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 = any> = Type<T> | AbstractType<T> | InjectionToken<T> | string;