Run型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A run of tiles along one line: the word it spells and the squares it stands on, in reading order.
インポート
import type { Run } from "@johnmorrisdotca/kumimoji";
定義
type Run = {
word: string;
squares: string[];
line: RunLine;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
word | string | |
squares | string[] | |
line | RunLine |
例
import type { Run } from "@johnmorrisdotca/kumimoji";
const value: Run = {word:"cat",squares:["0,0","0,1","0,2"],line:"across"};
console.log(value);{ word: 'cat', squares: [ '0,0', '0,1', '0,2' ], line: 'across' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。