TileFaceOf型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a tile shows: what tileFace answers.
インポート
import type { TileFaceOf } from "@johnmorrisdotca/kumimoji";
定義
type TileFaceOf = {
glyph: string;
forms: string;
wild: boolean;
blank: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
glyph | string | The letter or kana printed on it: 五 on a wild nobody has given one. |
forms | string | The other forms it plays as, small in its corner ( |
wild | boolean | Whether it is a wild tile, given a letter or not. |
blank | boolean | A wild with no letter yet. |
例
import type { TileFaceOf } from "@johnmorrisdotca/kumimoji";
import { tileFace } from "@johnmorrisdotca/kumimoji";
const value: TileFaceOf = tileFace("A");
console.log(value);{ glyph: 'a', forms: '', wild: true, blank: false }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。