Type alias Flatten<Type>

Flatten<Type>: Type extends (infer Item)[]
    ? Item
    : Type

Represents a flattened version of the given type. Only goes one level deep.

Type Parameters

  • Type