The type of the data object to extract values from
Dot notation for nested properties:
const getter: ValueGetter<{ user: { profile: { name: string } } }> = "user.profile.name";
JSONPath expression:
const getter: ValueGetter<{ items: Array<{ id: number }> }> = "$.items[*].id";
A value extractor that can retrieve data from an object using various methods.
This type supports multiple ways to extract values from your data structure: