How to make such a type that the field is either absent at all or is a number, i tried it:

But as you see from console.log it doesnt work, because null is ok for validator(same for undefined)
It will be ok if someone tells me how to make the null value not allowed, undefining is acceptable for me