Class: Instance<V>
Class: Instance<V>
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.
Author
Mr. Stone evensstone@gmail.com
Extends
Binding
<V
>
Type Parameters
V
V
extends BindingValue
The type of value that this binding holds.
Constructors
Constructor
new Instance<V>(value?): Instance<V>;
Create a new instance of Binding.
Parameters
value?
V
The value to be held by the binding.
Returns
Instance
<V
>
Inherited from
Properties
value?
protected optional value: V;
The value held by the binding.
This value is resolved at runtime, either directly or through a resolver function.
Inherited from
Methods
isResolved()
protected isResolved(): boolean;
Check if the value has been resolved.
Returns
boolean
A boolean indicating whether the value has been resolved.
Inherited from
resolve()
resolve(_container): undefined | V;
Resolve and return the value of the binding.
Parameters
_container
Container to resolve dependencies (not used in this implementation).
Returns
undefined
| V
The resolved value of the binding.