Skip to content

why dont use type annotations #1186

Open
@cinast

Description

@cinast

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions