Skip to content

bool() cannot be binded #1808

@kapooostin

Description

@kapooostin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or defect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions