Skip to content

toInvalid

toInvalid<E>(errors): Invalid<E>

Defined in: Core/Validation.ts:66

Creates an invalid Validation with the given errors.

E

NonEmptyList<E>

Invalid<E>

Validation.toInvalid(["Email is invalid", "Password too short"]);