Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

twine / defineDifficulty

Variable: defineDifficulty โ€‹

const defineDifficulty: <T>(config) => Record<Difficulty, T>

Defined in: spool/dist/plugins/difficulty/index.d.ts:29

Types a difficulty config. Every level must be listed, so nothing falls back silently.

Type Parameters โ€‹

T โ€‹

T

Parameters โ€‹

config โ€‹

Record<Difficulty, T>

Returns โ€‹

Record<Difficulty, T>

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.