GitHub

DaffSingleInjectionToken

interface

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
}

Properties

token
InjectionToken

The injection token.

provider
(value: R) => ValueProvider

A helper function to provide a value to the token.