Skip to content
#

form-validation

Here are 1,138 public repositories matching this topic...

ealush
ealush commented Mar 6, 2022

Add singular form of the following:

getErrors() -> getError()
getWarnings() -> getWarning()

The idea is to return the first error/warning of a field, instead of an array.
Unlike getErrors/getWarnings that can either take 0 or 1 arguments, getError/getWarning must receive a field name.

Function signature:

function getError(fieldName: string): string;
function getWarning(fieldNam
good first issue

Improve this page

Add a description, image, and links to the form-validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the form-validation topic, visit your repo's landing page and select "manage topics."

Learn more