Micro lib to define valid properties for an options litteral, and return a function that can validate the options.