リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
SourceStats型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a view's sources have done: for each record source how many records it holds and how many were left out.
インポート
import type { SourceStats } from "@johnmorrisdotca/chikyu-earth/door";
定義
interface SourceStats {
records: Record<string, {
status: string;
kept: number;
skipped: number;
}>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
records | Record<string, { status: string; kept: number; skipped: number; }> |
例
import type { SourceStats } from "@johnmorrisdotca/chikyu-earth/door";
const kept = (stats: SourceStats): number => Object.keys(stats.records).length;
console.log(typeof kept);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。