---
title: "tuple"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-schema/src/lib/schema.ts#L976"
---

# tuple

## Summary

Create a schema that validates a fixed-length tuple.

## Signature

```ts
function tuple<items extends Schema<any, any>[]>(
  items: items,
): Schema<unknown, { [index in string | number | symbol]: InferOutput<items[index]> }>

```

## Returns

A schema that produces a typed tuple