Documentation

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

Related