Reference · Streams, draws and seeds
Steptype
One draw and the state after it, for code that keeps the state itself (in a database row, say).
Import it
import type { Step } from "@johnmorrisdotca/tane";
Definition
type Step = {
readonly value: number;
readonly state: number;
};
Members
| Name | Type | Description |
|---|---|---|
value | number | |
state | number |
Examples
import type { Step } from "@johnmorrisdotca/tane";
import { step } from "@johnmorrisdotca/tane";
const value: Step = step(42);
console.log(value.state);1831565855What it prints (run when this page was built)