PropertyPaths
Type Alias: PropertyPaths<T, Filter>
PropertyPaths<
T,Filter> = [Filter] extends [never] ?_NonFunctionPropertyPaths<T> :_FilteredPropertyPaths<T,Filter>
Defined in: packages/models/src/types.ts:180
Return dot-notated paths for non-function properties, recursing into sub-objects.
If Filter type is specified, only returns paths where the property type extends Filter.
Example: { a: { b: string } } -> "a" | "a.b" Example with Filter=string: { a: string, b: { c: string, d: number } } -> "a" | "b.c"
Type Parameters
T
T extends object
Filter
Filter = never