ForbesLindesay / funtypes

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

Add `any` type #25

Open ForbesLindesay opened 3 years ago

ForbesLindesay commented 3 years ago

Ideally you'd always use a concrete type, or at least fall back to unknown, but sometimes being pragmatic requires you to be able to simply mark the parts that don't have types as any so you can at least get proper validation on the rest.

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