Skip to content

v2.3 Ability Wrapper

Latest
Compare
Choose a tag to compare
@Yurem1 Yurem1 released this 25 Mar 01:40
730336a

Ability endpoint support

Wrapper support for https://pokeapi.co/api/v2/ability has been added and can now be accessed as in the following example:

import { Pokedex } from './utility/pokedex';

// Example entry for gluttony ability
const entry = await Pokedex.getAbilities('gluttony');

// Checks if entry exists or not. 
if(entry) {
  // Print the name of the generation this ability was introduced.
  console.log(entry.getGeneration?.name)
}

Extra comments for all components

Added more detailed comments for all components, properties, & more.
New and more concise comments provide better information without the need to access external documentations.

New pokédex class on the work

A new, and more encapsulated version is ongoing. (v3.0).