ForbesLindesay / funtypes

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

Add .Exclude helper #27

Open ForbesLindesay opened 3 years ago

ForbesLindesay commented 3 years ago

An "Exclude" helper would allow you to take any existing type and exclude certain sub types. e.g. take an existing nullable type and make it not null by doing .Exclude(Null)

Requested in https://github.com/pelotom/runtypes/issues/139