Reference · Cube engine and views
SolveLinktype
A solve as a link carries it: its scramble, its moves, and its title where it has one.
Import it
import type { SolveLink } from "@johnmorrisdotca/kyuubu";
Definition
type SolveLink = {
scramble: string;
solution: string;
title?: string;
};
Members
| Name | Type | Description |
|---|---|---|
scramble | string | |
solution | string | |
title (optional) | string | undefined |
Examples
import type { SolveLink } from "@johnmorrisdotca/kyuubu";
const value: SolveLink = { scramble: "R U", solution: "U' R'", title: "Two turns" };
console.log(value.title);Two turnsWhat it prints (run when this page was built)