This is a version of minesweeper where all the logic is written in typescript types, with a little JS sprinkled in to view the output.
You can view the source on Github, or alternatively view the type only version on typescript playground.