utilitypes-ts
    Preparing search index...

    Type Alias Prettify<T>

    Prettify: { [K in keyof T]: T[K] } & {}

    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.

    Type Parameters

    • T

      The type to simplify for display

    type Result = Prettify<{ a: string } & { b: number }>;
    // ^?
    // { a: string; b: number }