Figure型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A number or a text with where it came from. A figure with no source is blank (value is null) and is never estimated. Where sources disagree, the figure keeps the one chosen and others holds the rest.
インポート
import type { Figure } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Figure<T = number> {
value: T | null;
source: SourceId | null;
date?: string;
note?: string;
brief?: string;
others?: readonly Disagreement<T>[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
value | T | null | |
source | "uchusen-design" | "wikipedia-starship" | "wikipedia-super-heavy" | "wikipedia-ship" | "wikipedia-flight-1" | "wikipedia-launches" | "wikipedia-raptor" | "spacex-starship" | "nsf-block3" | "ars-2024" | "satnews-v3" | "gunter" | "newspace-v1-v4" | "spacecom-mk1" | "r-spacex" | "wikipedia-falcon-1" | "spacex-falcon-1-guide" | "wikipedia-falcon-9" | "wikipedia-merlin" | "wikipedia-dragon-1" | "wikipedia-dragon-2" | "wikipedia-grasshopper" | "wikipedia-falcon-9-ft" | "wikipedia-falcon-9-block-5" | "wikipedia-saturn-v" | "wikipedia-apollo-csm" | "wikipedia-apollo-spacecraft" | "wikipedia-f-1" | "wikipedia-j-2" | "wikipedia-space-shuttle" | "wikipedia-shuttle-orbiter" | "wikipedia-shuttle-tank" | "sfn-cassiope" | "sfn-abs-eutelsat" | "wikipedia-abs-2a" | "wikipedia-be-4" | "wikipedia-be-3" | "wikipedia-rutherford" | "wikipedia-rd-107" | "wikipedia-kestrel" | "wikipedia-sls-srb" | "wikipedia-shuttle-srb" | "wikipedia-rs-25" | "wikipedia-sls" | "wikipedia-orion" | "wikipedia-esm" | "wikipedia-new-glenn" | "wikipedia-electron" | "wikipedia-soyuz-2" | "wikipedia-vulcan" | "wikipedia-ariane-6" | "wikipedia-asds" | "wikipedia-lz" | "wikipedia-slc-4" | "faa-pea-2022" | "wikipedia-starbase" | "openstreetmap" | "wikipedia-lunar-module" | "wikipedia-apollo-soyuz" | "wikipedia-soyuz-7k-tm" | "wikipedia-gemini" | "wikipedia-mercury" | "wikipedia-jupiter-c" | "wikipedia-iss" | "wikipedia-hubble" | "wikipedia-discovery" | "wikipedia-falcon-heavy" | "wikipedia-flight-5" | "wikipedia-flight-7" | "wikipedia-flight-12" | "wikipedia-fh-test-flight" | "wikipedia-landing-tests" | "sfn-crs-16" | "sfn-starlink-2019" | "sfn-flight-23" | "wikipedia-falcon-9-v1-0" | "sfn-cots1-timeline" | "sfn-cots1-presskit" | "sfn-flight-35" | "uchusen-fleet-ship-02" | "uchusen-fleet-kaminari-concepts" | "wikipedia-voyager-1" | null | |
date (省略可) | string | undefined | The date the figure is from, where it has one. |
note (省略可) | string | undefined | |
brief (省略可) | string | undefined | A few words that must stay beside the value wherever it is shown, so it cannot be misread: "announced", "in this form". For a blank, what to say in place of a value. |
others (省略可) | readonly Disagreement<T>[] | undefined |
例
import { variantOf, type Figure } from "@johnmorrisdotca/uchusen-rockets";
const height: Figure | undefined = variantOf("starship", "v3")?.facts.height;
console.log(height?.value, height?.source);124.4 wikipedia-starship出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。