sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.8k stars 105 forks source link

Fix for static type error for `ow.object.valuesOfType()` #185

Closed ilkerceng closed 3 years ago

ilkerceng commented 4 years ago

Fixes #181

sindresorhus commented 4 years ago

Can you add one or more tests?

ilkerceng commented 4 years ago

Meanwhile, i think validate and addValidator functions which are implemented in Predicate class can also be declared in BasePredicate interface

sindresorhus commented 3 years ago

Meanwhile, i think validate and addValidator functions which are implemented in Predicate class can also be declared in BasePredicate interface

You are probably right about that. PR welcome for that.