getLesson関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Finds one of the three bilingual rules lessons by stable ID.
インポート
import { getLesson } from "@johnmorrisdotca/houseki/magnetic-blocks";
定義
function getLesson(id: string): MagneticLesson | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A stable content id, or the one-based display number when numbers are accepted. |
戻り値
MagneticLesson | undefined
Finds one of the three bilingual rules lessons by stable ID. Returns undefined when the id or display number is absent.
例
import { getLesson, lessonManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(getLesson(lessonManifest[0].id)?.id);calm-bonds出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。