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

x/deno2node/src/deps.deno.ts>Diagnostic

Compile your Deno project to run on Node.js.
Go to Latest
class Diagnostic
import { Diagnostic } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Diagnostic.

Constructors

new
protected
Diagnostic()

Type Parameters

optional
TCompilerObject extends ts.Diagnostic = ts.Diagnostic

Properties

readonly
compilerObject: TCompilerObject

Gets the underlying compiler diagnostic.

Methods

Gets the diagnostic category.

getCode(): number

Gets the code of the diagnostic.

getLength(): number | undefined

Gets the length.

getLineNumber(): number | undefined

Gets the line number.

Gets the message text.

getSource(): string | undefined

Gets the source.

getSourceFile(): SourceFile | undefined

Gets the source file.

getStart(): number | undefined

Gets the start.