Function const

  • Creates the constant value shape.

    Type Parameters

    • Value extends Any

      The expected value.

    Parameters

    • value: Value

      The value to which the input must be strictly equal.

    • Optionaloptions: IssueOptions | Message

      The issue options or the issue message.

    Returns ConstShape<Value>