max

View Source

Summary

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

Signature

function max(limit: number): Check<number>;

Params

limit

The inclusive maximum value

Returns

A Check that enforces the upper bound