I think very specific validators, while potentially useful, could end up costing a lot at runtime. What if there were a way to instantiate a copy of ow
that can be ignored?
The API could look something like:
import _ow from 'ow'
const ow = _ow.ignoreIf(process.env.NODE_ENV === 'production')
function veryExpensiveValidator(obj) {
// ...
}
// doesn't do anything when NODE_ENV is production
ow(someObj, obj => ow.is(obj))
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too