maxLength

View Source

Summary

Require a string to be at most length characters long.

Signature

function maxLength(length: number): Check<string>;

Params

length

The maximum number of characters

Returns

A Check that enforces the maximum length