Expands intersections and mapped types into a single object shape for clearer editor display.
Type to flatten for display; runtime values are unchanged.
type Raw = { id: string } & { name: string };type User = Prettify<Raw>;// ^? { id: string; name: string } Copy
type Raw = { id: string } & { name: string };type User = Prettify<Raw>;// ^? { id: string; name: string }
Expands intersections and mapped types into a single object shape for clearer editor display.