Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

RecordsReadtype

What loadRecords found. skipped counts the records dropped for a non-finite number; a failed read has no records and says why.

Import it

import type { RecordsRead } from "@johnmorrisdotca/chikyu-earth/door";

Definition

interface RecordsRead<R> {
    status: "ok" | "failed" | "aborted";
    records: readonly R[];
    skipped: number;
    reason?: string;
}

Members

NameTypeDescription
status"ok" | "failed" | "aborted"
recordsreadonly R[]

Frozen. Empty unless the read succeeded.

skippednumber
reason (optional)string | undefined

Why a read failed.

Examples

import type { RecordsRead } from "./data-door.ts";

const say = (read: RecordsRead<unknown>): string => `${read.status}: ${read.records.length} kept, ${read.skipped} skipped`;

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.