# Exclude

`import { Exclude } from "destack:types";`

Remove union members of `T` assignable to `U`.

```ds title="Exclude"
export type Exclude<T, U> = T extends U ? never : T
```

[language/library/src/types/object.ds:52](https://github.com/destack-sh/destack/blob/main/language/library/src/types/object.ds#L52)
