span

span

Location in the file (optional)

span?: DiagnosticSpan

The span of the invalid code in the file. Could be undefined if the diagnostic is system-level (and not file-specific), like e.g. an error about invalid TS options.