Skip to content

DependencyToken

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / DependencyToken<T> class

Represents a dependency token for which types, factories or instances can be configured.

This is an abstraction where definitions cannot be configured directly, such as interfaces. Instead binding an interface to an implementation, a dependency token is configured for an implementation.

class DependencyToken<T>

Source reference: src/dependencies/IDependencyResolver.ts:131.

Generic Parameters

  • T - The type that is associated with the dependency token.

Constructors

Properties

  • readonly description - Gets the dependency token textual description.

Methods

  • toString - Gets the string representation of the dependency token.

Inheritance Hierarchy

  • DependencyToken<T>

See also

Clone this wiki locally