A linked list of formatted diagnostic messages to be used as part of a multiline message. It is built from the bottom up, leaving the head to be the "main" diagnostic.

interface DiagnosticMessageChain {
    category: 0 | 1 | 2 | 3;
    code: number;
    messageText: string;
    next?: DiagnosticMessageChain[];
}

Properties

category: 0 | 1 | 2 | 3

Diagnostic category: warning = 0, error = 1, suggestion = 2, message = 3

code: number
messageText: string