---
title: "HandleArray: interface in Layout, TypeShade API reference"
description: "HandleArray, an interface in Layout. A fixed-size array<Element, N> uniform field whose element is a struct handle: patterns: arrayOf."
url: https://typeshade.dev/api/handlearray/
language: en
---

# `HandleArray`

Interface in Layout

A fixed-size `array<Element, N>` uniform field whose element is a struct handle: patterns: arrayOf.

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

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

## Syntax

```ts
interface HandleArray<H extends StructHandle> {
  readonly element: H;
  readonly count: number;
}
```

## Description

The field proxy exposes a typed `.at(i)` that returns the element’s field proxy, `U.field.patterns.at(k).id`. The declared WGSL type is `array<T, N>`.

## Instance properties

**`element` read only `H`**

The element’s struct handle.

**`count` read only `number`**

The array length.

## Source

[`src/core/sot.ts`, line 611](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/sot.ts#L611), at commit af54ddad5
