type ObservableObject.InferObservedValue
Infers the value type from a Binding or property key.
type InferObservedValue<TObj extends Record<string, any>, T> =
T extends Binding<infer V> ? V : T extends string ? TObj[T] : unknown;
Notes
- This type is used by ObservableObject.observeAsync() to determine callback argument types.
Related
class ObservableObject
The base class of all observable objects, which can be placed into a tree structure to enable event handling and data binding.
