method Program.prototype.getDeclarationDiagnosticsimport { Program } from "https://deno.land/x/ts_morph@22.0.0/mod.ts"; getDeclarationDiagnostics(sourceFile?: SourceFile): DiagnosticWithLocation[]Gets the declaration diagnostics. Gets the declaration diagnostics. ParametersoptionalsourceFile: SourceFile Optional source file to filter by. ReturnsDiagnosticWithLocation[]