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

# UnionToIntersection

- 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

Convert union type to intersection type.

**Signature:**

```typescript
export type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
```

## Example

```tsx
number | string | boolean is resolved as number & string & boolean
Type1 | Type2 | Type3 is resolved as Type1 & Type2 & Type3
```
