-- Compiled with roblox-ts v1.3.3
--[[
	*
	*
	* @param obj object of concern.
	* @param typeId new type. Restricted to keys of the variant.
	* @param typeKey discriminant key.
]]

local function narrow(obj, typeId, typeKey)
	local _exp = obj
	local _condition = typeKey
	if _condition == nil then
		_condition = "type"
	end
	local typeString = _exp[_condition]
	return if typeString == typeId then obj else nil
end
return {
	narrow = narrow,
}
