local s=script.Parent local P=s.Parent local m=require(P.Parent.t)local function T(s)local P={}for s,T in pairs(s)do P[#P+1]=m.literal(T)end return m.union(unpack(P))end return T
-- Validator for Roblox enums

local UtilityRoot = script.Parent
local UIBloxRoot = UtilityRoot.Parent

local t = require(UIBloxRoot.Parent.t)

local function enumValidator(enum)
	local validators = {}

	for _, enumItem in pairs(enum) do
		validators[#validators + 1] = t.literal(enumItem)
	end

	return t.union(unpack(validators))
end

return enumValidator
