Skip to main content
Version: 1.4.0

Unit

The type unit is a predefined type that contains only one value that carries no information. It is used when no relevant information is required or produced.

The unique value of type unit is [], like an empty tuple.

const x : unit = [];