Simplify a type for improved IntelliSense display.
Type to simplify
Expands intersections and flattens mapped types to produce cleaner IDE hover tooltips. Functions are left untouched.
type Complex = { a: string } & { b: number } & { c: boolean };type Simple = Simplify< Complex >;// { a: string; b: number; c: boolean } Copy
type Complex = { a: string } & { b: number } & { c: boolean };type Simple = Simplify< Complex >;// { a: string; b: number; c: boolean }
Simplify a type for improved IntelliSense display.