Internal helper: "Flattens" the object one level deep.
This generates a mapped type where the keys are the property names, and the values are the calculated paths (current key + nested paths).
// Input: { user: { name: string } }// Output: { user: "user" | "user.name" } Copy
// Input: { user: { name: string } }// Output: { user: "user" | "user.name" }
v6.38.0
Internal helper: "Flattens" the object one level deep.
This generates a mapped type where the keys are the property names, and the values are the calculated paths (current key + nested paths).