-
Notifications
You must be signed in to change notification settings - Fork 4
Pokedex
TRACTION edited this page Sep 15, 2023
·
1 revision
• new Pokedex(options?
)
Name | Type |
---|---|
options |
PokedexOptions |
• Private
authorization: string
• Private
url: string
• Private
useragent: string
▸ getEvolutionStone(name
): Promise
<EvolutionStone
>
Get the details of the specified evolution stone.
Name | Type |
---|---|
name |
string |
Promise
<EvolutionStone
>
▸ getPokemon(slug
): Promise
<Pokemon
[]>
Get the details of the specified Pokémon and its forms.
Name | Type |
---|---|
slug |
string | number
|
Promise
<Pokemon
[]>
▸ listEvolutionStones(): Promise
<EvolutionStoneList
>
Get a list of all the evolution stones.
Promise
<EvolutionStoneList
>
▸ listPokemon(): Promise
<PokemonList
>
Get a list of all the discovered Pokémon.
Promise
<PokemonList
>
▸ Private
request<R
>(path?
): Promise
<R
>
Name |
---|
R |
Name | Type | Default value |
---|---|---|
path |
string |
"/" |
Promise
<R
>