Skip to main content
Module

x/deno/js/diagnostics.ts>DiagnosticItem

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface DiagnosticItem
import { type DiagnosticItem } from "https://deno.land/x/deno@v0.17.0/js/diagnostics.ts";

Properties

message: string

A string message summarizing the diagnostic.

optional
messageChain: DiagnosticMessageChain

An ordered array of further diagnostics.

optional
relatedInformation: DiagnosticItem[]

Information related to the diagnostic. This is present when there is a suggestion or other additional diagnostic information

optional
sourceLine: string

The text of the source line related to the diagnostic

optional
lineNumber: number

The line number that is related to the diagnostic

optional
scriptResourceName: string

The name of the script resource related to the diagnostic

optional
startPosition: number

The start position related to the diagnostic

optional
endPosition: number

The end position related to the diagnostic

The category of the diagnostic

code: number

A number identifier

optional
startColumn: number

The the start column of the sourceLine related to the diagnostic

optional
endColumn: number

The end column of the sourceLine related to the diagnostic