Interface Options<T, Def>

Type Parameters

Hierarchy

  • Options

Properties

Properties

default?: Def | (() => Def)

A ComputedKey providing a default value for this TypeKey if none is provided to the Container.

Type declaration

    • (): Def
    • Returns Def

name?: string

A name for this TypeKey, largely for use in error messages.

of?: ClassLike<T>

A class or function. The name will be used to name this TypeKey and the return type can be used to infer the target type.

Generated using TypeDoc