sindresorhus
ow

https://github.com/sindresorhus/ow
Go to Github

Function argument validation for humans

https://github.com/sindresorhus/ow/issues/92Go to Github

FundedView inObject shape validator#92

sindresorhuscreated this issue 13 days ago

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?

Logs

Amount funded

$60.00

Resolve this issue and earn $54.00

Fund this issue

Fund as

Payment method

Amount(USD)

Please sign in first to fund this issue

Sign in with

Pull requests

0

    Submit

    URL of your pull request

    Submit your pull request

    Please sign in first to submit a pull request

    Sign in with