Type alias MessageCallback

MessageCallback: ((issue, options) => 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: ApplyOptions

        The parsing options.

      Returns any

Returns

The value that should be used as an issue message. The returned value is ignored if issue.message was assigned a non-undefined value inside the callback.