FitCode型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Why a check said what it said: an unknown rocket, variant, slot or part, a part of the wrong kind, a joint that is missing, of another kind or of another width, or a custom build.
インポート
import type { FitCode } from "@johnmorrisdotca/uchusen-rockets";
定義
type FitCode = "unknown-rocket" | "unknown-variant" | "unknown-slot" | "unknown-part" | "wrong-kind" | "no-joint" | "joint-kind" | "joint-diameter" | "custom";
例
import { check, type FitCode } from "@johnmorrisdotca/uchusen-rockets";
const codes: FitCode[] = check({ rocket: "nowhere" }).issues.map((issue) => issue.code);
console.log(codes);[ 'unknown-rocket' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。