Skip to main content

Type Alias: PathKeys<T, K>

PathKeys<T, K>: K extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? PathKeys<T[Key], Rest> : never : K extends keyof T ? T[K] : never

Type Parameters

T

K