Open EECOLOR opened 3 years ago
For example:
export const number = x => Number(x) !== x && error('number')
If x is empty it will report a number error. This makes optional number fields impossible.
x
number
optional
For example:
If
x
is empty it will report anumber
error. This makesoptional
number fields impossible.