Reference · Rockets, variants, parts and the fit check
SpecLinetype
A line of a spec block: a name, a value with its unit, and a note.
Import it
import type { SpecLine } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface SpecLine {
name: string;
value: string;
note?: string;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
value | string | |
note (optional) | string | undefined |
Examples
import { specBlock, type SpecLine, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const line: SpecLine = specBlock(SAMPLE_SHIPS.scout)[0];
console.log(line.name, line.value);Length 151.9 mWhat it prints (run when this page was built)