---
title: "u32: type in Runtime, TypeShade API reference for developers"
description: "u32, a type in Runtime. A u32 as a host value: a number, a whole number from 0 to 4294967295, which a call checks."
url: https://typeshade.dev/api/u32-type/
language: en
---

# `u32`

Type in Runtime

A `u32` as a host value: a number, a whole number from 0 to 4294967295, which a call checks.

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

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

## Syntax

```ts
type u32 = number & { readonly [tag]?: 'u32' };
```

## In the guide

- [Language guide](https://typeshade.dev/guide/internals/)
- [Your first shader](https://typeshade.dev/guide/internals/your-first-shader/)
- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)
- [Functions and entry points](https://typeshade.dev/guide/internals/functions-and-entry-points/)
- [Control flow](https://typeshade.dev/guide/internals/control-flow/)
- [Layouts and resources](https://typeshade.dev/guide/internals/layouts-and-resources/)
- [The CPU oracle](https://typeshade.dev/guide/internals/the-cpu-oracle/)
- [fp64](https://typeshade.dev/guide/internals/fp64/)
- [Migrating a GLSL shader](https://typeshade.dev/guide/internals/migrating-a-glsl-shader/)

## Source

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