Diagnostics
GeoDiagnostic, GeoDiagnosticLevel, GeoDiagnosticSink: generated from the source of active-geo.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
interface GeoDiagnostic {
readonly level: GeoDiagnosticLevel;
readonly source: string;
readonly message: string;
readonly data?: Readonly<Record<string, unknown>>;
}Diagnostics go to a sink the host passes (diagnostics on the map), the same contract as the Active chart and grid packages. The package imports no logging library, keeps no module-level logger, reports only data it cannot draw truthfully, and names structure (counts, reasons, indices), never host data such as identifiers or labels.
type GeoDiagnosticLevel = 'debug' | 'warn' | 'error';type GeoDiagnosticSink = (diagnostic: GeoDiagnostic) => void;