#What am I doing wrong here?

1 messages · Page 1 of 1 (latest)

final zinc
#

Can you share a Codesandbox, please?

woeful jolt
#

really? That's the entire code

#

there's just the types missing

#

when i hover over actions, i get the error message above

final zinc
#

Let' s see that TriviaGameType type

woeful jolt
#

players is Record<string, UserAccountModelType>

#
const BaseGameInvite = z.object({
  players: z.record(UserAccountModel),
});
const TriviaGame = BaseGameInvite.extend({
.........
});
#
  Index signature for type 'string' is missing in type 'AssignAction<unknown, EventObject, EventObject>'
#

this really feels like a basic xstate mistake

woeful jolt