v2.0 MAJOR Release
v2.0 Major Release
Major changes in main class
Pokedex class, aka the main class has now become fully static, & cannot be instantiated anymore.
To fully get the most of it. Whatever endpoint you are attempting to access, it must start with
.get
followed by the name of the endpoint you want to access.
For example:
const dex = await Pokedex.getPokemon('mr. mime');
Properties must be accessed through getters
All properties must be accessed through getters. Direct access will not work.
For Example:
const dex = await Pokedex.getPokemon('mr. mime.');
// You must use optional chaining to access the object, otherwise
// use if-statements.
const id = dex?.getPokemonId;
Extra Info:
Other endpoints are still being worked on and should be arriving soon in the future. stay tuned.