---
title: number
---

# number

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/data-schema/src/lib/schema.ts#L649" target="_blank">View Source</a>

## 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`