superstruct icon indicating copy to clipboard operation
superstruct copied to clipboard

Refinement function return types are not documented

Open arturmuller opened this issue 3 years ago • 1 comments

Hi — I noticed that the docs don't mention the ability to return strings, Failures, etc... from refinement functions to customize error messages. Is this intentional (ie. is this just for internal use?) or just an omission?

I am happy to add it if there's interest.

arturmuller avatar Aug 10 '22 16:08 arturmuller

@arturmuller would love a PR! Good call.

ianstormtaylor avatar Sep 19 '22 16:09 ianstormtaylor