Extract all valid dot-separated paths from an object type.
Produces paths like "name" | "address.city" | "address.postcode".
Stops at leaf types (string, number, boolean, null) and arrays.
Returns string for wide types (object, Record, unknown).
Handles optional/nullable fields by unwrapping T | undefined.
Extract all valid dot-separated paths from an object type. Produces paths like "name" | "address.city" | "address.postcode". Stops at leaf types (string, number, boolean, null) and arrays. Returns
stringfor wide types (object, Record, unknown). Handles optional/nullable fields by unwrapping T | undefined.