---
title: "i32T: constant in Types, TypeShade API reference"
description: "i32T, a constant in Types. The i32 scalar type, the DSL's signed-integer type: the result type of the i32(/api/i32/) cast…"
url: https://typeshade.dev/api/i32t/
language: en
---

# `i32T`

Constant in Types

The `i32` scalar type, the DSL's signed-integer type: the result type of the `i32`(/api/`i32`/) cast, and the type a non-integer matchExpr scrutinee is cast to before emit, since WGSL's switch only accepts integer scrutinees.

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

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

## Syntax

```ts
const i32T: { readonly kind: "scalar"; readonly scalar: "i32"; }
```

## Description

Use it for signed-integer `fn` parameters and fields; for an unsigned count or index, prefer [`u32T`](https://typeshade.dev/api/u32t/).

## See also

- [`i32`](https://typeshade.dev/api/i32/)
- [`matchExpr`](https://typeshade.dev/api/matchexpr/)
- [`u32T`](https://typeshade.dev/api/u32t/)

## Source

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