# IsUnion

`type` in `gateway` · v0.1.0-next.3

<https://docs.seedcord.org/packages/gateway/0.1.0-next.3/types/is-union>

Returns a boolean for whether the given type is a union.

## Examples

```ts
import type {IsUnion} from 'type-fest';

type A = IsUnion<string | number>;
//=> true

type B = IsUnion<string>;
//=> false
```

## Declaration

```ts
type IsUnion<T> = InternalIsUnion<T>;
```
