Reference · Rules, solvers and generation
TwistRoletype
Where a level sits in its block's lesson: its 15th teaches the block's twist, its 16th tests it. newOnes are what no earlier level of the size had.
Import it
import type { TwistRole } from "@johnmorrisdotca/tsunagi";
Definition
type TwistRole = {
role: "teaches" | "tests";
challenges: Challenge[];
newOnes: Challenge[];
};
Members
| Name | Type | Description |
|---|---|---|
role | "teaches" | "tests" | |
challenges | Challenge[] | |
newOnes | Challenge[] |
Examples
import type { TwistRole } from "@johnmorrisdotca/tsunagi";
const value: TwistRole = {role:"teaches",challenges:["portals"],newOnes:["portals"]};
console.log(value);{ role: 'teaches', challenges: [ 'portals' ], newOnes: [ 'portals' ] }What it prints (run when this page was built)