> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# Flatten

- Package: [@gooddata/sdk-ui](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui/src/base/react/placeholders/base.ts

Flatten array type.

**Signature:**

```typescript
export type Flatten<T> = T extends Array<infer A> ? A : T;
```

## Remarks

If the type is not an array, return the same type. Works only for 1 level, nested array types are not recursively flattened.

## Example

```tsx
number[] is resolved as number
string[][] is resolved as string[]
string is resolved as string
```
