The specs enum allows for mapping from a equip slot id to its corresponding name. The key is a numberid and the value is a stringname. It is accessed through wow.enums.specs. For example:
It is recommended to use specs alongside the spec member of the Player type. For example: