Interface ContainerRead

Subset of container methods. Needs to be implemented to create decorators. Contains read methods from a Container by RefSymbol.

Hierarchy

Properties

Properties

get: (<T>(ref) => undefined | T)

Type declaration

    • <T>(ref): undefined | T
    • Retrieves the data from the container referenced by the given RefSymbol. If there is no data available it returns undefined but never throws an exception.

      Type Parameters

      • T

      Parameters

      Returns undefined | T

      The referenced data from the container or undefined.

getOrFail: (<T>(ref) => T)

Type declaration

    • <T>(ref): T
    • Retrieves the data from the container referenced by the given RefSymbol. If there is no data available it throws an exception defined by the container.

      Type Parameters

      • T

      Parameters

      Returns T

      The referenced data from the container.

Generated using TypeDoc