numberCreates a schema that matches numbers:const numberSchema = number();const numberValidator = validate(numberSchema); // Returns 3.14const pi = numberValidator(3.14);Copy