ratehub/check-prop-types

Add option to always run validation

Opened this issue · 0 comments

Currently checkPropTypes() is wrapped in if (process.env.NODE_ENV !== 'production') { condition.

Can we add some config object as 6th parameter, something like:

function checkPropTypes(typeSpecs, values, location, componentName, getStack, { validateAlways: boolean }) {

Thanks