Functions taking some input and returning a Validation
// Validates that a string is not emptyexport const nestring = (s: string): V.Validation<string, string> => s.length > 0 ? V.Success(s) : V.Warning(["Must be non-empty"], s); Copy
// Validates that a string is not emptyexport const nestring = (s: string): V.Validation<string, string> => s.length > 0 ? V.Success(s) : V.Warning(["Must be non-empty"], s);
When validating, Validation allows you to return:
Generated using TypeDoc
Functions taking some input and returning a Validation
When validating, Validation allows you to return: