CubeAxis型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An axis of the cube: 0 is x (to the right), 1 is y (up) and 2 is z (towards the viewer).
インポート
import type { CubeAxis } from "@johnmorrisdotca/kyuubu";
定義
type CubeAxis = 0 | 1 | 2;
例
import type { CubeAxis } from "@johnmorrisdotca/kyuubu";
const value: CubeAxis = 0;
console.log(value);0出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。