Skip to content

Commit d54af1f

Browse files
committed
fix(events): Don’t use const enum for better backwards compatibility
1 parent d56d209 commit d54af1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/events/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { State, Ctx, PlayerID, Game, ActivePlayersArg } from '../../types';
1010
import { automaticGameEvent } from '../../core/action-creators';
1111
import { GameMethod } from '../../core/game-methods';
1212

13-
const enum Errors {
13+
enum Errors {
1414
CalledOutsideHook = 'Events must be called from moves or the `onBegin`, `onEnd`, and `onMove` hooks.\n' +
1515
'This error probably means you called an event from other game code, like an `endIf` trigger or one of the `turn.order` methods.',
1616

0 commit comments

Comments
 (0)