Docs (4.0.0)
Bindings

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

  • TYPE_CHECK staticA symbol that’s used for type checking only.