We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56d209 commit d54af1fCopy full SHA for d54af1f
1 file changed
src/plugins/events/events.ts
@@ -10,7 +10,7 @@ import type { State, Ctx, PlayerID, Game, ActivePlayersArg } from '../../types';
10
import { automaticGameEvent } from '../../core/action-creators';
11
import { GameMethod } from '../../core/game-methods';
12
13
-const enum Errors {
+enum Errors {
14
CalledOutsideHook = 'Events must be called from moves or the `onBegin`, `onEnd`, and `onMove` hooks.\n' +
15
'This error probably means you called an event from other game code, like an `endIf` trigger or one of the `turn.order` methods.',
16
0 commit comments