interfaces namespace

Interfaces

Interface

Description

Binder

Partial interface which describes the final step of specifying a binding

BindingBuilder

BindingBuilder used as a fallback for any generic type

BindingMetadata

Partial interface for building bindings which specify metadata

BindingScope

Partial interface for building bindings which specifies scope options

ClassBinder

Partial interface for building bindings that contains options for types identified by a constructor

ClassBindingBuilder

BindingBuilder used for types identified by a constructor directly

Container

An IOC container

ContainerConfiguration

A configuration object for creating a new container

FactoryContext

Extra context passed to factory bindings

InjectOptions

Options that can be applied to an individual injection

ObjectBinder

Partial interface for building bindings that contains options for types which are some kind of object type

ObjectBindingBuilder

BindingBuilder used for types which are objects

Type Aliases

Type Alias

Description

ArgsForInjectionIdentifiers

Mapped type to convert a list of injection parameters into a list of injectable values

AsyncContainerModule

Loadable module which contains asynchronous bindings

BindFunction

A function that allows for creating new bindings in a container

Constructor

A constructor for a class

ContainerFactory

Shared type used for functions which create new containers

ContainerModule

A generic module which contains bindings for a container

DirectInjection

A way to allow for injections that don’t involve a container, eg. unmanaged dependencies

Fn

Helper for defining functions

ImplicitScopeBindingOptions

Describes which Binder options are only available when not specifying a scope

InjectedMetadata

Helper type which is used to map an InjectionIdentifier into the type of any metadata that might be requested

InjectedType

Helper type which is used to map an InjectionIdentifier into the type that will be injected

InjectionIdentifier

Valid options for parameters into the @injectable decorator

IsBoundFunction

Checks if a binding for a given identifier already exists in a container

Logger

A valid logger object to be used by the container

LoggerFn

The function signature to support for writing a log message.

LoggerLevel

Log levels required for the container to log messages

MetadataForIdentifier

MetadataObject

Metadata object for bindings that support it

RebindFunction

Unbinds any existing bindings for an identifier and replaces them with a new one

ScopeOptions

A list of all valid scope options

ServiceIdentifier

A type which can act as an identifier for a specific type of object used for injection

ServiceIdentifierWithMetadata

A interfaces.ServiceIdentifier which allows for attaching metadata to bindings as well

SyncContainerModule

Loadable module which contains synchronous bindings

UnbindFunction

Unbinds any existing bindings for an identifier