ForbesLindesay / funtypes

Runtime validation for static types
MIT License
29 stars 4 forks source link

fix: handle test and serialize properly in unions of parsed values #39

Closed ForbesLindesay closed 3 years ago

ForbesLindesay commented 3 years ago

The optimisation was mistakenly assuming data always had the un-parsed structure, when in fact serialize and test operate on the parsed data. This change also introduces a new optimisation of excluding never and excluding parsed values that do not have a serialize method

rollingversions[bot] commented 3 years ago

This PR will not result in a new version of funtypes as there are no user facing changes.

Add changes to trigger a release