devtypes - v1.1.0
    Preparing search index...

    Type Alias Flatten<T>

    Flatten: T extends any[] ? { [K in keyof T]: T[K] } : T

    Flatten array type for better IntelliSense display.

    Type Parameters

    • T

      The type to flatten

    Improves readability of array types in hover information. Useful when working with deeply nested arrays or tuple types.

    type Arr = Array< { a: number } >;
    type FlatArr = Flatten< Arr >; // { a: number }[]