lichess-org / chessground

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

make a named type for MaterialDiff.{white|black} #61

Closed niklasf closed 7 years ago

niklasf commented 7 years ago

In https://github.com/ornicar/lila/blob/93a2b0f0668e61e3d6fde2bc44f837a6417a1df8/ui/round/src/view/main.ts#L17 materialDiff is actually the white/black side of a cg.MaterialDiff (type error is right now hidden by implicit any). Adding a MaterialDiffSide type would be useful.