provideValue
provideValue<
T>(token,useValue):ValueProvider<T>
Defined in: packages/di-craft/src/core/provider/provider.ts:26
Creates a provider for an already constructed value.
The value must match the token type.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Token<T>
useValue
Section titled “useValue”T
Returns
Section titled “Returns”Example
Section titled “Example”provideValue(PORT, 3000);