SourceStatstype
What a view's sources have done: for each record source how many records it holds and how many were left out.
Import it
import type { SourceStats } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface SourceStats {
records: Record<string, {
status: string;
kept: number;
skipped: number;
}>;
}
Members
| Name | Type | Description |
|---|---|---|
records | Record<string, { status: string; kept: number; skipped: number; }> |
Examples
import type { SourceStats } from "@johnmorrisdotca/chikyu-earth/door";
const kept = (stats: SourceStats): number => Object.keys(stats.records).length;
console.log(typeof kept);functionWhat it prints (run when this page was built)