Closed jessekelly881 closed 1 year ago
we have this :
type Res = $<Objects.Get, "a.b", { a: { b: number } } >;
// ^? type Res = number
and this :
type Res = $<Objects.AllPaths, { a: { b: number } }>
// ^? type Res = "a.b"
so you can combine both ?
Ooh. I overlooked Object.Get. That works. Thanks!
Something like this would be useful to be able to get the type at a given path, if possible.