minLength

View Source

Summary

Require a string to be at least length characters long.

Signature

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

Params

length

The minimum number of characters

Returns

A Check that enforces the minimum length