---
title: "bool: type in Runtime, TypeShade API reference"
description: "bool, a type in Runtime. A bool as a host value: a boolean, with its name as a number has its name."
url: https://typeshade.dev/api/bool-type/
language: en
---

# `bool`

Type in Runtime

A bool as a host value: a boolean, with its name as a number has its name.

`import type { bool } from 'typeshade/runtime'`

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

## Syntax

```ts
type bool = boolean & { readonly [tag]?: 'bool' };
```

## In the guide

- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)
- [Control flow](https://typeshade.dev/guide/internals/control-flow/)
- [The CPU oracle](https://typeshade.dev/guide/internals/the-cpu-oracle/)

## Source

[`src/runtime/host-types.ts`, line 55](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/host-types.ts#L55), at commit af54ddad5
