class Diagnosticimport { Diagnostic } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts"; Diagnostic. ConstructorsnewprotectedDiagnostic()Type ParametersoptionalTCompilerObject extends ts.Diagnostic = ts.DiagnosticPropertiesreadonlycompilerObject: TCompilerObjectGets the underlying compiler diagnostic. MethodsgetCategory(): DiagnosticCategoryGets the diagnostic category. getCode(): numberGets the code of the diagnostic. getLength(): number | undefinedGets the length. getLineNumber(): number | undefinedGets the line number. getMessageText(): string | DiagnosticMessageChainGets the message text. getSource(): string | undefinedGets the source. getSourceFile(): SourceFile | undefinedGets the source file. getStart(): number | undefinedGets the start.