Reference · Cube engine and views
ReplayFaulttype
Why a replay could not be planned: which text would not read, and where.
Import it
import type { ReplayFault } from "@johnmorrisdotca/kyuubu";
Definition
type ReplayFault = {
part: "size" | "scramble" | "solution" | "length";
fault?: NotationFault;
};
Members
| Name | Type | Description |
|---|---|---|
part | "size" | "scramble" | "solution" | "length" | |
fault (optional) | NotationFault | undefined |
Examples
import type { ReplayFault } from "@johnmorrisdotca/kyuubu";
const value: ReplayFault = { part: "solution", fault: { token: "oops", at: 0, line: 1, column: 1, reason: "unknown" } };
console.log(value.part);solutionWhat it prints (run when this page was built)