Skip to main content

Type Alias: Token<T>

Token<T> = Type<T> | string | symbol

A token used to uniquely identify a provider in the DI container. Tokens can be:

  • A class constructor (Type<T>)
  • A string
  • A symbol

Type Parameters

T

T = any

The type of the value represented by this token. Defaults to any.

See

Type