ElementSetsReadtype
What readElementSets found: the frozen element sets that can be used, and skipped, the ones left out for a number that is not finite, a name that is not text or an orbit that is not an ellipse.
Import it
import type { ElementSetsRead } from "@johnmorrisdotca/chikyu-earth/door";
Definition
type ElementSetsRead = RecordsRead<ElementSet>;
Members
| Name | Type | Description |
|---|---|---|
status | "ok" | "failed" | "aborted" | |
records | readonly ElementSet[] | Frozen. Empty unless the read succeeded. |
skipped | number | |
reason (optional) | string | undefined | Why a read failed. |
Examples
import type { ElementSetsRead } from "@johnmorrisdotca/chikyu-earth/door";
const say = (read: ElementSetsRead): string => `${read.status}: ${read.records.length} kept, ${read.skipped} skipped`;
console.log(typeof say);functionWhat it prints (run when this page was built)