---
title: "voidT: constant in Types, TypeShade API reference"
description: "voidT, a constant in Types. The absent-value type: the return type of an fn whose body never returns a value."
url: https://typeshade.dev/api/voidt/
language: en
---

# `voidT`

Constant in Types

The absent-value type: the return type of an fn whose body never returns a value.

`import { voidT } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const voidT: { readonly kind: "void"; }
```

## Description

Return-type inference falls back to it when it finds no `Return` in a body, so you rarely need to write it explicitly.

## Source

[`src/core/ir/types/scalar-types.ts`, line 54](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/scalar-types.ts#L54), at commit af54ddad5
