local normalIds: {Enum.NormalId} = Enum.NormalId:GetEnumItems()
--> Type '{EnumItem}' could not be converted into '{Enum.NormalId}'
Enum.GetEnumItems
is always considered to be (Enum)->{EnumItem}
regardless of the actual return value. Each enum’s GetEnumItems
function actually returns an array of the same type of enum. Enum.NormalId.GetEnumItems
should be interpreted as (typeof(Enum.NormalId))->{Enum.NormalId}
, Enum.AssetType.GetEnumItems
should be (typeof(Enum.AssetType))->{Enum.AssetType}
, and so on.