FamousSolvetype
One famous solve.
Import it
import type { FamousSolve } from "@johnmorrisdotca/kyuubu/famous";
Definition
type FamousSolve = {
id: string;
size: number;
timeMs: number;
solver: string;
country: string;
competition: string;
competitionId: string;
from: string;
to: string;
record: "world record" | "tied world record";
scramble: string;
solution: string;
reconstructedBy?: string;
source: string;
checked: string;
};
Members
| Name | Type | Description |
|---|---|---|
id | string | A short name for it, fixed for good: the solver and the time. |
size | number | The cube's side. |
timeMs | number | The official time, in milliseconds. |
solver | string | Who solved it, as the WCA's results name them. |
country | string | The country they represent. |
competition | string | The competition. |
competitionId | string | The competition's id at worldcubeassociation.org. |
from | string | The competition's first day, as year-month-day. The solve was made on one of its days. |
to | string | The competition's last day. |
record | "world record" | "tied world record" | What it was when it was made. |
scramble | string | The scramble, white on top and green in front. |
solution | string | The solve, a line for each stage as its source sets it out. |
reconstructedBy (optional) | string | undefined | Who worked the moves out from the film, where the source says. |
source | string | Where the scramble and the moves were published. |
checked | string | The day the source was last read, as year-month-day. |
Examples
import type { FamousSolve } from "@johnmorrisdotca/kyuubu/famous";
import { FAMOUS_SOLVES } from "@johnmorrisdotca/kyuubu/famous";
const value: FamousSolve = FAMOUS_SOLVES[0]!;
console.log(value.solver);Teodor ZajderWhat it prints (run when this page was built)