Point型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Zero-based board coordinates. Row 0 is the top, column 0 is the left.
インポート
import type { Point } from "@johnmorrisdotca/narabe";
定義
type Point = {
row: number;
col: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
row | number | |
col | number |
例
import type { Point } from "@johnmorrisdotca/narabe";
const value: Point = {row:7,col:7};
console.log(value);{ row: 7, col: 7 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。