Skip to content

Commit

Permalink
fix(types): Expect Game.setup method to return G (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjurkiewicz committed Aug 23, 2021
1 parent b312c28 commit fa30fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export interface Game<
deltaState?: boolean;
disableUndo?: boolean;
seed?: string | number;
setup?: (ctx: CtxWithPlugins, setupData?: SetupData) => any;
setup?: (ctx: CtxWithPlugins, setupData?: SetupData) => G;
validateSetupData?: (
setupData: SetupData | undefined,
numPlayers: number
Expand Down

0 comments on commit fa30fcc

Please sign in to comment.