Interface
IProviderModule | import { IProvider } from "@tsed/di" |
---|---|
Source | /packages/di/src/interfaces/IProvider.ts |
Overview
interface IProvider<;T>; {
provide: any;
useClass?: Type<;T>;;
instance?: T;
type: ProviderType | any;
[key: string]: any;
}
Members
provide: any
An injection token. (Typically an instance of Type
or InjectionToken
, but can be any
).
useClass?: Type<;T>;
Class to instantiate for the token
.
instance?: T
type: ProviderType | any
Provider type
[key: string]: any