---
title: "vec2i: type in Runtime, TypeShade API reference"
description: "vec2i, a type in Runtime. A vec2i as a host value: a readonly tuple of two i32."
url: https://typeshade.dev/api/vec2i-type/
language: en
---

# `vec2i`

Type in Runtime

A `vec2i` as a host value: a readonly tuple of two `i32`.

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

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

## Syntax

```ts
type vec2i = readonly [i32, i32];
```

## In the guide

- [Values and mutation](https://typeshade.dev/guide/internals/values-and-mutation/)

## Source

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