FactoryTokenProvider
@tsed/di
Usage
typescript
import { FactoryTokenProvider } from "@tsed/di/src/common/interfaces/TokenProvider";Overview
ts
type FactoryTokenProvider<T = any> = T & {
readonly __type: "token_factory";
};Description
Factory token type with type inference support.
A branded type that enables type inference when using the inject() function. This token type carries runtime type information to solve TypeScript's inference limitations in DI scenarios.
readonly __type
ts
readonly __type: "token_factory";