Type alias Prettify<Target>

Prettify<Target>: {
    [Keys in keyof Target]: Target[Keys]
} & {}

Pretty

Type Parameters

  • Target

    The object to prettify

Type declaration

    Desc

    Takes an object type and makes the hover overlay more readable. Credits to Matt Pocock for the idea.

    See

    Returns

    The prettified object

    Example

    type Mess = {
    a: string;
    } & {
    b: number;
    } & {
    c: boolean;
    };
    type Pretty = Prettify<Mess> // { a: string; b: number; c: boolean; }