sindresorhus/ow
The issue has been solved
Object shape validator #92
sindresorhus posted onGitHub
Would be useful to be able to validate the shape of objects, like PropTypes.shape
I imagine it could be like:
ow(input, ow.object.shape({
color: ow.string,
height: ow.number.greatherThan(10)
}))
@SamVerschueren @transitive-bullshit Thoughts?