📄️ PokeApi
The PokeApi is a wrapper class that allows fetching and handling resources from PokéAPI/v2 endpoints. All the methods returns typed interfaces regarding the desired PokéAPI resource. For example, a '/pokemon' endpoint, can return one single interface Pokemon resource, or many paginated resources, according to which method was used.
📄️ pokeapi()
The pokeapi() function is syntatic sugar for the PokeApi class. The function returns an instance of the class and allows chaining methods for fetching data in a procedural fashion. Both function and class shares the same methods and properties. The main diference is how they are invoked.
🗃️ Interfaces
11 items