Type Alias MessageCallback

MessageCallback: ((issue: Issue, options: ParseOptions) => any)

Returns a human-readable message that describes an issue.

You can assign the Issue.message property directly inside this callback or return the message.

Type declaration

    • (issue, options): any
    • Parameters

      • issue: Issue

        The issue for which the message should be produced.

      • options: ParseOptions

        The parsing options.

      Returns any

      The value that should be used as an issue message. If a non-undefined value is returned, it is assigned to the Issue.message property.