Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bool() cannot be binded #1808

Closed
kapooostin opened this issue May 12, 2019 · 1 comment
Closed

bool() cannot be binded #1808

kapooostin opened this issue May 12, 2019 · 1 comment
Labels
bug Bug or defect
Milestone

Comments

@kapooostin
Copy link

Context

  • node v10.15.3:
  • joi 15.0.2:
  • node:
  • standalone:

What are you trying to achieve or the steps to reproduce?

I'm trying to use binded versions of Joi methods:

const { bool } = Joi.bind()

Which result you had?

An error:

Message:
  Must be invoked on a Joi instance.

What did you expect?

bool() should work just as boolean() does.

@kapooostin kapooostin changed the title bool() could not be binded bool() cannot be binded May 12, 2019
@Marsup Marsup added the bug Bug or defect label May 13, 2019
@Marsup Marsup self-assigned this May 13, 2019
@Marsup Marsup added this to the 15.0.3 milestone May 13, 2019
@Marsup Marsup closed this as completed in 4e4c6c9 May 13, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

No branches or pull requests

2 participants