Fleettype
A fleet: a group of satellites that belong together, found by the pattern its members' names follow.
Import it
import type { Fleet } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
interface Fleet {
id: string;
label: {
en: string;
ja: string;
};
pattern: RegExp;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | A short name for an address or a button, lower case. |
label | { en: string; ja: string; } | |
pattern | RegExp | What the name of a member matches (the name as the catalogue writes it, upper case). |
Examples
import type { Fleet } from "@johnmorrisdotca/chikyu-earth/catalogue";
const fleet: Fleet = { id: "starlink", label: { en: "Starlink", ja: "スターリンク" }, pattern: /^STARLINK/ };
console.log(fleet.pattern.test("STARLINK-1007"));trueWhat it prints (run when this page was built)