@servicenow/sdk - v4.4.1
    Preparing search index...

    Item of diagnostic information found in a DiagnosticEvent message.

    interface DiagnosticWithFileName {
        category: string;
        code?: number;
        end: tsc.server.protocol.Location;
        fileName: string;
        relatedInformation?: tsc.server.protocol.DiagnosticRelatedInformation[];
        reportsDeprecated?: {};
        reportsUnnecessary?: {};
        source?: string;
        start: tsc.server.protocol.Location;
        text: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    category: string

    The category of the diagnostic message, e.g. "error", "warning", or "suggestion".

    code?: number

    The error code of the diagnostic message.

    The last file location at which the text applies.

    fileName: string

    Name of the file the diagnostic is in

    Any related spans the diagnostic may have, such as other locations relevant to an error, such as declarartion sites

    reportsDeprecated?: {}
    reportsUnnecessary?: {}
    source?: string

    The name of the plugin reporting the message.

    Starting file location at which text applies.

    text: string

    Text of diagnostic message.