---
title: "FloatKey: type in Types, TypeShade API reference"
description: "FloatKey, a type in Types. The f32-family keys, 'f32' and the f32 vectors: the argument domain of the float-only component-wise builtins."
url: https://typeshade.dev/api/floatkey/
language: en
---

# `FloatKey`

Type in Types

The `f32`-family keys, '`f32`' and the `f32` vectors: the argument domain of the float-only component-wise builtins.

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

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

## Syntax

```ts
type FloatKey = 'f32' | `vec${number}<f32>`;
```

## Description

WGSL and GLSL ES 3.00 define those builtins over floats only, so an `i32`, `u32` or bool node is rejected at `tsc`.

## Source

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