Interface Injector

Retrieve instances previously bound to the specified InjectableId.

Hierarchy

Implemented by

Methods

get

  • Return an instance of <T> previously bound to 'id'.

    throws

    Error if the InjectableId was never registered, OR if there are unresolved asynchronous dependencies in the dependency tree for 'id'.

    Parameters

    Returns T

isIdKnown

  • Check to see if the existing InjectableId is known (aka has been bound). Error callbacks may wish to know if a particular InjectableId is available. Also the Binder's bindXXX calls always overwrite any previous bindings, so you may want to use this as a gate.

    Parameters

    Returns boolean

resolve

  • awaits the asynchronous resolution of all dependencies in the tree for 'id'.

    Parameters

    Returns Promise<T>

Generated using TypeDoc