TypeScript compile-time dice rolls
github.com
github.com
TLDR
```ts const r = evaluate("d20", initializedState); // r knows it rolled "12" on type-level const v = valueOf(r); // value of v is 12, type is literal 12 ```
The code is controlled slop; tokens were burnt with mindfulness.