lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.02k stars 262 forks source link

Mistake in state.ts file #214

Closed agawrylak closed 2 years ago

agawrylak commented 2 years ago

Take a look at https://github.com/ornicar/chessground/blob/master/src/state.ts line 12 check?: cg.Key; // square currently in check "a2" In fact it is not a cg.Key, it is a boolean. If you set it to true it will show red color under current player's king.

benediktwerner commented 2 years ago

You're looking at the wrong file. The config you're actually passing to chessground is here: https://github.com/ornicar/chessground/blob/master/src/config.ts#L11

And it has the correct type. What you linked is internal state of chessground which is different.