Appearance
twine / defineDifficulty
Variable: defineDifficulty โ
constdefineDifficulty: <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>