Reference · Cube engine and views
SolveReadingtype
What reading a solve gives: its steps, or the first thing that could not be read.
Import it
import type { SolveReading } from "@johnmorrisdotca/kyuubu";
Definition
type SolveReading = {
ok: true;
steps: SolveMove[];
} | {
ok: false;
steps: SolveMove[];
fault: NotationFault;
};
Examples
import type { SolveReading } from "@johnmorrisdotca/kyuubu";
import { parseSolve } from "@johnmorrisdotca/kyuubu";
const value: SolveReading = parseSolve("R U", 3);
console.log(value.ok);trueWhat it prints (run when this page was built)