Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno.unstable.d.ts>Deno.DiagnosticItem

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.DiagnosticItem
import { type Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { DiagnosticItem } = Deno;

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.