From 659593da41989e8724290c32f043b7a2f4bbbd04 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Mon, 23 Aug 2021 20:10:26 +1000 Subject: [PATCH] Adjust Game.setup type The return value should be G, not any. --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index e786ee869..87eb05e01 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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