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

# max

## Summary

Require a number to be less than or equal to `limit`.

## Signature

```ts
function max(limit: number): Check<number>

```

## Parameters

### `limit`

The inclusive maximum value

## Returns

A [`Check`](/data-schema/type/Check/) that enforces the upper bound