feat: freeze lex order constant table

This commit is contained in:
Erica Marigold 2024-11-11 17:09:37 +05:30 committed by GitHub
parent f94ba14bd6
commit 3481217e40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,11 +164,11 @@ export type ParseError =
Lexicographical ordering for prerelease types
]=]
local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = {
local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = table.freeze({
alpha = 1,
beta = 2,
rc = 3,
}
})
--[=[
@within Semver