type BindingOrValue
A type that maps to the specified type or a Binding instance.
type BindingOrValue<T> =
| T
| {
[BindingOrValue.TYPE_CHECK]: () => T;
};
Notes
- This type can be used in object types or function arguments, to allow both a direct value and a binding.
Static members
BindingOrValue.TYPE_CHECK static
A symbol that’s used for type checking only.
