-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move from const enums to consts #1645
Merged
Merged
Commits on Nov 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5620f26 - Browse repository at this point
Copy the full SHA 5620f26View commit details -
Historically, many of these enums used `const enum`s, which at least had the benefit of being compiled away at build time. We've now moved to mostly normal `enum`s, which are both less efficient than normal constants, and a relic of an earlier TypeScript era before literal types. This PR moves all enums to normal constants, and creates types for the constant values when the code needs them.
Configuration menu - View commit details
-
Copy full SHA for 77cc0d0 - Browse repository at this point
Copy the full SHA 77cc0d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00e8785 - Browse repository at this point
Copy the full SHA 00e8785View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d1f5dc - Browse repository at this point
Copy the full SHA 5d1f5dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 588b2dc - Browse repository at this point
Copy the full SHA 588b2dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cb088a - Browse repository at this point
Copy the full SHA 5cb088aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a315d3 - Browse repository at this point
Copy the full SHA 5a315d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb64adc - Browse repository at this point
Copy the full SHA eb64adcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b49b6e9 - Browse repository at this point
Copy the full SHA b49b6e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19e63a2 - Browse repository at this point
Copy the full SHA 19e63a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e18b5b6 - Browse repository at this point
Copy the full SHA e18b5b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdf810e - Browse repository at this point
Copy the full SHA cdf810eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b10d437 - Browse repository at this point
Copy the full SHA b10d437View commit details -
Configuration menu - View commit details
-
Copy full SHA for d65631b - Browse repository at this point
Copy the full SHA d65631bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5636a8f - Browse repository at this point
Copy the full SHA 5636a8fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.