-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(enums): transform enums to unions where needed (#965)
- Loading branch information
1 parent
efc6749
commit 44eebe2
Showing
208 changed files
with
85,307 additions
and
71,202 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/modules/game/constants/game-additional-card/game-additional-card.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { RoleNames } from "@/modules/role/enums/role.enum"; | ||
import type { RoleName } from "@/modules/role/types/role.types"; | ||
|
||
const GAME_ADDITIONAL_CARDS_RECIPIENTS = [RoleNames.THIEF, RoleNames.ACTOR] as const satisfies Readonly<(RoleNames)[]>; | ||
const GAME_ADDITIONAL_CARDS_RECIPIENTS = ["thief", "actor"] as const satisfies Readonly<(RoleName)[]>; | ||
|
||
export { GAME_ADDITIONAL_CARDS_RECIPIENTS }; |
9 changes: 9 additions & 0 deletions
9
src/modules/game/constants/game-history-record/game-history-record.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const GAME_HISTORY_RECORD_VOTING_RESULTS = [ | ||
"sheriff-election", | ||
"tie", | ||
"death", | ||
"inconsequential", | ||
"skipped", | ||
] as const; | ||
|
||
export { GAME_HISTORY_RECORD_VOTING_RESULTS }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/modules/game/constants/game-victory/game-victory.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const GAME_VICTORY_TYPES = [ | ||
"none", | ||
"werewolves", | ||
"villagers", | ||
"lovers", | ||
"pied-piper", | ||
"white-werewolf", | ||
"angel", | ||
"prejudiced-manipulator", | ||
] as const; | ||
|
||
export { GAME_VICTORY_TYPES }; |
Oops, something went wrong.