number

View Source

Summary

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

Signature

function number(): Schema<unknown, number>;

Returns

A schema that produces a number