ValidatorFn defines the signature for a validation function. It takes an unknown value and either returns void if valid or throws an error if invalid.
ValidatorFn defines the signature for a validation function. It takes an unknown value and either returns void if valid or throws an error if invalid.