> For the complete documentation index, see [llms.txt](https://docs.pokeb.ag/data-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pokeb.ag/data-sdk/low-level-api/getenums.md).

# getEnums

`getEnums` returns `enum`s for the dataset. This is useful for parsing representatoinal fields into their official strings.

> **⚠️ NOTE ⚠️** If you just need to parse the `slot` and `type` of skills returned from [`getSkills`](/data-sdk/core-methods/getskills.md), you should probably use `getSkills` with the `parseEnums` option.

## Examples

```javascript
import {
  getEnums,
  getSkills,
} from '@pokebag/data-sdk'

async function getParsedSkills() {
  const skills = await getSkills()
  const [
    skillSlots,
    skillTypes,
  ] = await Promise.all([
    getEnums({ type: 'pokemon-skill-slot' }),
    getEnums({ type: 'pokemon-skill-type' }),
  ])

  return skills.map(skill => {
    return {
      ...skill,
      slot: skillSlots[skill.slot],
      type: skillTypes[skill.type],
    }
  })
}

getParsedSkills()
// Logs an array of skills with enums parsed
```
