By using setmetatable on ChatTypeInfo and setting the metatable's __index to a table or function. In this case it is a table.
It is the same reason you can iterate over pairs(CreateFrame("Frame")) and only see a key-value pair of [0] and userdata but still be able to access all of its methods such as Hide and Show.
|