Typed factory and reporting operations for a fixed set of diagnostic definitions.
Type Parameter T extends object
Property Modifier Type Description diagnosticsreadonlyDiagnosticMap <T>Definitions used to determine severity and format messages. typereadonlyTType-only carrier for message inference; not populated by the diagnostic creator at runtime.
createDiagnostic < C , M >(diag): Diagnostic;
Formats a diagnostic without reporting it. Throws if the code or selected message
is not defined; library-scoped creators qualify the resulting diagnostic code.
Type Parameter Default type C extends string | number | symbol- M extends string | number | symbol"default"
Diagnostic
reportDiagnostic < C , M >(program, diag): void ;
Creates and reports the diagnostic through the program, which applies its reporting policies.
Type Parameter Default type C extends string | number | symbol- M extends string | number | symbol"default"
void