voidT
On this page

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

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, at commit af54ddad5

Edit this page Report a problem