import { DaffSingleInjectionToken } from '@daffodil/core'
A injection token to hold and provide a single value.
interface DaffSingleInjectionToken<T = unknown> {
token: InjectionToken<T>
provider: <R extends T = T>(value: R) => ValueProvider
}
token InjectionToken<T> |
---|
The injection token. |
provider <R extends T = T>(value: R) => ValueProvider |
---|
A helper function to provide a value to the token. |