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

# number

## Summary

Create a schema that accepts finite numbers (excluding `NaN` and `Infinity`).

## Signature

```ts
function number(): Schema<unknown, number>

```

## Returns

A schema that produces a `number`