Placement型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where a stone goes when played. free: where it was put. drop: it slides
to the lowest empty cell of its column, as if the board were upright and
the stones were magnetic.
インポート
import type { Placement } from "@johnmorrisdotca/narabe";
定義
type Placement = "free" | "drop" | "edge";
例
import type { Placement } from "@johnmorrisdotca/narabe";
const value: Placement = "drop";
console.log(value);drop出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。