Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

DependencyKey

DependencyKey: Instantiable<any> | StaticClass<any, any> | string

Type used to represent a value that can identify a factory in the container.

MaybeDependency

MaybeDependency: any | undefined

MaybeFactory

MaybeFactory: AbstractFactory | undefined

ResolvedDependency

ResolvedDependency: { key: DependencyKey; paramIndex: number; resolved: any }

Type declaration

StaticClass

StaticClass<T, T2>: Function & { prototype: T } & T2

Type that identifies a value as a static class, even if it is not instantiable.

Type parameters

  • T

  • T2

Variables

Const DEPENDENCY_KEYS_METADATA_KEY

DEPENDENCY_KEYS_METADATA_KEY: "extollo:di:dependencies:ctor" = 'extollo:di:dependencies:ctor'

Const DEPENDENCY_KEYS_PROPERTY_METADATA_KEY

DEPENDENCY_KEYS_PROPERTY_METADATA_KEY: "extollo:di:dependencies:properties" = 'extollo:di:dependencies:properties'

Const DEPENDENCY_KEYS_SERVICE_TYPE_KEY

DEPENDENCY_KEYS_SERVICE_TYPE_KEY: "extollo:di:service_type" = 'extollo:di:service_type'

Functions

Const Inject

  • Inject(key?: any): PropertyDecorator
  • Mark the given class property to be injected by the container. If a key is specified, that DependencyKey will be injected. Otherwise, the DependencyKey is inferred from the type annotation.

    Parameters

    • Optional key: any

    Returns PropertyDecorator

Const InjectParam

  • InjectParam(key: any): ParameterDecorator
  • Parameter decorator to manually mark a parameter as being an injection target on injectable classes. This can be used to override the dependency key of a given parameter.

    Parameters

    • key: any

    Returns ParameterDecorator

Const Injectable

  • Injectable(): ClassDecorator
  • Class decorator that marks a class as injectable. When this is applied, dependency metadata for the constructors params is resolved and stored in metadata.

    Returns ClassDecorator

Const Singleton

  • Singleton(name?: string): ClassDecorator

isInstantiable

isStaticClass

  • isStaticClass<T, T2>(something: any): something is StaticClass<T, T2>
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.