Shared structured-diagnostics seam for the *-formats importers — reportImportDiagnostic colocates a stable-kind ImportDiagnostic at each parser data-dropping branch (a no-op when no collector is passed, so an unopted parse pays only one undefined check),
Shared structured-diagnostics seam for the -formats importers — reportImportDiagnostic colocates a stable-kind ImportDiagnostic at each parser data-dropping branch (a no-op when no collector is passed, so an unopted parse pays only one undefined check), collectImportDiagnostics runs a parse with a collector installed as the drift-free explain alternative to re-walking drop conditions, and formatImportDiagnostic renders one line for humans; deps types only, sideEffects false
Install
npm install @flighthq/importdiagnostics
Import the supported application-facing API from @flighthq/importdiagnostics. The @flighthq/importdiagnostics/contract export is the wider package-to-package contract used to compose Flight itself.
This package is part of the locked-version Flight SDK graph. Applications may instead install and import @flighthq/sdk when package-level tree shaking is sufficient.
Shared structured-diagnostics seam for the *-formats importers — reportImportDiagnostic colocates a stable-kind ImportDiagnostic at each parser data-dropping branch (a no-op when no collector is passed, so an unopted parse pays only one undefined check),