Type which eagerly collects all paths through a fieldType that matches a give type
field values which are indexed by the paths
the value you want to match into each type
FieldPathByValue<{foo: {bar: number}, baz: number, bar: string}, number> = 'foo.bar' | 'baz' Copy
FieldPathByValue<{foo: {bar: number}, baz: number, bar: string}, number> = 'foo.bar' | 'baz'
Type which eagerly collects all paths through a fieldType that matches a give type