Reference · Rockets, variants, parts and the fit check
Decktype
One deck of the numbered summary.
Import it
import type { Deck } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Deck {
number: number;
name: string;
does: string;
role: SectionRole;
module: string;
place: number;
from: number;
to: number;
}
Members
| Name | Type | Description |
|---|---|---|
number | number | Deck 1 is at the bow (the top of the spine). |
name | string | |
does | string | |
role | SectionRole | |
module | string | |
place | number | |
from | number | Where it lies on the spine, metres from the stern. |
to | number |
Examples
import { deckSummary, type Deck, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const deck: Deck = deckSummary(SAMPLE_SHIPS.scout)[0];
console.log(deck.number, deck.name);1 Upper platformWhat it prints (run when this page was built)