Stone.js API
    Preparing search index...

    Class representing an Instance.

    This class extends the Binding class and directly holds an instance value. It provides a straightforward resolution mechanism that simply returns the stored value.

    Mr. Stone evensstone@gmail.com

    Type Parameters

    • V extends BindingValue

      The type of value that this binding holds.

    Hierarchy (View Summary)

    Index
    resolved: boolean

    Whether the value has been resolved at least once.

    Tracked explicitly (not inferred from value !== undefined) so a binding whose resolved value is legitimately undefined is still considered resolved — preserving the singleton guarantee and avoiding repeated resolver side effects.

    value?: V

    The value held by the binding.

    This value is resolved at runtime, either directly or through a resolver function.

    • Check if the value has been resolved.

      Returns boolean

      A boolean indicating whether the value has been resolved.

    • Resolve and return the value of the binding.

      Parameters

      • _container: IContainer

        Container to resolve dependencies (not used in this implementation).

      Returns V

      The resolved value of the binding.