Function createIssue

  • Creates a new issue.

    Parameters

    • code: any

      The issue code.

    • input: unknown

      The input value that caused an issue.

    • defaultMessage: Message

      The default message that is used if there's no IssueOptions.message

    • param: unknown

      The issue param that is also passed to the message callback.

    • parseOptions: ParseOptions

      The options passed to the Shape._apply or Shape._applyAsync

    • issueOptions: undefined | IssueOptions | Message

      The issue options or undefined if there's no specific issue options.

    Returns Issue