SolveLink型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A solve as a link carries it: its scramble, its moves, and its title where it has one.
インポート
import type { SolveLink } from "@johnmorrisdotca/kyuubu";
定義
type SolveLink = {
scramble: string;
solution: string;
title?: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
scramble | string | |
solution | string | |
title (省略可) | string | undefined |
例
import type { SolveLink } from "@johnmorrisdotca/kyuubu";
const value: SolveLink = { scramble: "R U", solution: "U' R'", title: "Two turns" };
console.log(value.title);Two turns出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。