Skip to content

refactor: replace typescript enums with const objects - #1189

Open
ugcodrr wants to merge 2 commits into
mainfrom
refactor/enums-to-const
Open

ugcodrr wants to merge 2 commits into
mainfrom
refactor/enums-to-const

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description: We still had 14 TypeScript enums next to the as const objects used everywhere else (like GameIdMapping), so they're const objects now with a type of the same name, and every value stays the same.

Conflicts with #1185, #1086 and #1122, which each add to or use one of these enums.

Testing: Every saved player builds the same Player as on main, and the leaderboard keys, Mongo schemas and OpenAPI document come out the same.

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 11, 2026 4:14am UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant