GemSwapLesson型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One bilingual native lesson with its authored setup, teaching steps and winning witness.
インポート
import type { GemSwapLesson } from "@johnmorrisdotca/houseki/gem-swap";
定義
interface GemSwapLesson {
readonly id: string;
readonly title: {
readonly en: string;
readonly ja: string;
};
readonly initial: CreateOptions;
readonly steps: readonly GemSwapLessonStep[];
readonly witness: readonly ReplayOperation[];
readonly reviewStatus: GemSwapReviewStatus;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
title | { readonly en: string; readonly ja: string; } | |
initial | CreateOptions | |
steps | readonly GemSwapLessonStep[] | |
witness | readonly ReplayOperation[] | |
reviewStatus | "human-review-pending" |
例
import type { GemSwapLesson } from "@johnmorrisdotca/houseki/gem-swap";
import { GEM_SWAP_LESSONS } from "@johnmorrisdotca/houseki/gem-swap";
const value: GemSwapLesson = GEM_SWAP_LESSONS[0];
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'id', 'title', 'initial', 'steps', 'witness', 'reviewStatus' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。