ForbesLindesay / funtypes

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

Function contract overloads #19

Open ForbesLindesay opened 4 years ago

ForbesLindesay commented 4 years ago

Since we can validate all the types, we could provide a method for specifying a series of overloads for a function, where the first function to match the parameters is called.

Related request: https://github.com/pelotom/runtypes/issues/163