--[[
	A common interface for accessing the values of state objects or constants.
]]


local xtypeof = require(script.Parent.Parent.ObjectUtility).xtypeof

local function unwrap<T>(item: T, useDependency: boolean?): T
	return if xtypeof(item) == "State" then (item :: any):get(useDependency) else (item :: T)
end

return unwrap
