Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.Diagnostic

interface Diagnostic {
code: number;
end?: {
line: number;
character: number;
}
;
fileName?: string;
messageChain?: DiagnosticMessageChain;
messageText?: string;
relatedInformation?: Diagnostic[];
source?: string;
sourceLine?: string;
start?: {
line: number;
character: number;
}
;
}

§Properties

§

The category of the diagnostic.

§
code: number
[src]

A number identifier.

§
end?: {
line: number;
character: number;
}
[src]

The end position of the error. Zero based index.

§
fileName?: string
[src]

The filename of the resource related to the diagnostic message.

§

An ordered array of further diagnostics.

§
messageText?: string
[src]

A string message summarizing the diagnostic.

§
relatedInformation?: Diagnostic[]
[src]

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

§
source?: string
[src]
§
sourceLine?: string
[src]

The text of the source line related to the diagnostic.

§
start?: {
line: number;
character: number;
}
[src]

The start position of the error. Zero based index.