Skip to content

Instantly share code, notes, and snippets.

View KLanausse's full-sized avatar

Lanausse KLanausse

View GitHub Profile
local EnumsInternal = {}
local makeEnum
-- Luau can only type enumSpec adaptively if we describe it as an adaptive table first and then reassign it using its adaptive table type.
local enumSpec = {}
enumSpec = setmetatable({}, {
__newindex = function(self, name, spec)
makeEnum(name, spec)
end