Skip to content

[F] formatDiagnostic

function formatDiagnostic(diagnostic, options?): string;

Format a diagnostic, its source location, and template-instantiation context as a single string.

ParameterType
diagnosticDiagnostic
optionsFormatDiagnosticOptions

string