> For the complete documentation index, see [llms.txt](https://type.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://type.angular-package.dev/type/undefined.md).

# Undefined

## `Undefined<Type>`

A generic type `Undefined` indicates generic type variable [`Type`](#type) as [`undefined`](https://www.typescriptlang.org/docs/handbook/basic-types.html#null-and-undefined). It takes generic type variable [`Type`](#type) causing other types than [`undefined`](https://www.typescriptlang.org/docs/handbook/basic-types.html#null-and-undefined) its change to [`never`](https://www.typescriptlang.org/docs/handbook/basic-types.html#never).

{% code title="undefined.type.ts" %}

```typescript
type Undefined<Type> = Type extends undefined ? Type : never;
```

{% endcode %}

### Generic type variables

#### `Type`

Generic type variable that cannot be different than [`undefined`](https://www.typescriptlang.org/docs/handbook/basic-types.html#null-and-undefined).
