devtypes - v1.1.0
    Preparing search index...

    Type Alias Expand<T>

    Expand: T extends object ? { [K in keyof T]: T[K] } & {} : T

    Expand object type for better IntelliSense display.

    Type Parameters

    • T

      The type to expand

    Flattens intersection types for clearer hover and auto-completion. Does not change the type but improves editor readability.

    type Nested = { a: { b: { c: number } } };
    type Expanded = Expand< Nested >; // { a: { b: { c: number } } }