Step型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One draw and the state after it, for code that keeps the state itself (in a database row, say).
インポート
import type { Step } from "@johnmorrisdotca/tane";
定義
type Step = {
readonly value: number;
readonly state: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
value | number | |
state | number |
例
import type { Step } from "@johnmorrisdotca/tane";
import { step } from "@johnmorrisdotca/tane";
const value: Step = step(42);
console.log(value.state);1831565855出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。