Actio
API ReferenceFunctions

formatDiagnostics

function formatDiagnostics(diagnostics, sources?): string;

Defined in: packages/core/src/diagnostics.ts:56

Render diagnostics as human-readable text, with a code frame when the originating source is available in sources (keyed by file name).

Parameters

diagnostics

Diagnostic[]

sources?

Record<string, string> = {}

Returns

string

On this page