Type Alias: ProviderEntry
Imported from
@react-logic/diDefined in: di/src/lib/types.ts:101
An entry in an Injector's provide array.
A bare class is sugar for { provide: Class, useClass: Class } — equivalent
to "use this class as both the token and its own implementation". This is
the most common case: provide a class, get its instances on demand.
Mix bare classes with full Provider objects freely:
provide={[CounterStore, { provide: API_URL, useValue: '/api' }]}.
Type Parameters
T
T = unknown
The type the provider entry resolves to.