boardgameio/boardgame.io

why dont use type annotations

Opened this issue · 0 comments

cinast commented

place at https://github.com/boardgameio/boardgame.io/blob/main/src/core/flow.ts

your arguments at your factaries dosent use any type limts
then use large if-checks-nonempty-init lines
but here is typescript, if you donst likes type stops you from fastfast coding pleasure
tsdoc is better

Flow({
  moves,
   ....
}: Game) {
   move = moves || {}

and replace much unnecessary if...