Forces TypeScript to expand and display a type as a plain object.
This is mainly useful for improving readability in editor hovers and tooltips, especially for complex types involving intersections or mapped types.
It does not change the actual type, it only affects how it is shown.
The type to simplify for display
type Result = Prettify<{ a: string } & { b: number }>;// ^?// { a: string; b: number } Copy
type Result = Prettify<{ a: string } & { b: number }>;// ^?// { a: string; b: number }
Forces TypeScript to expand and display a type as a plain object.
This is mainly useful for improving readability in editor hovers and tooltips, especially for complex types involving intersections or mapped types.
It does not change the actual type, it only affects how it is shown.