---
title: "IntKey: type in Types, TypeShade API reference"
description: "IntKey, a type in Types. The integer keys, i32 and u32 scalars and vectors, for the builtins whose WGSL and GLSL domain includes integers: abs, min…"
url: https://typeshade.dev/api/intkey/
language: en
---

# `IntKey`

Type in Types

The integer keys, `i32` and `u32` scalars and vectors, for the builtins whose WGSL and GLSL domain includes integers: abs, min, max and clamp.

`import type { IntKey } from 'typeshade'`
`import type { IntKey } from 'typeshade/core/ir'`

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

## Syntax

```ts
type IntKey = 'i32' | 'u32' | `vec${number}<i32>` | `vec${number}<u32>`;
```

## Description

`sign` is defined over floats and signed integers only, so it takes `i32` and rejects `u32`.

## Source

[`src/core/ir/node.ts`, line 1072](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L1072), at commit af54ddad5
