Returns a function that throws an error if the input is invalid. Otherwise, returns the result.
A mapper that will be invoked with the input.
MapperValidationError If the input is invalid.
Returns a function that throws an error if the input is invalid. Otherwise, returns the result.