tallgrass/client/pokemon_type

Functions

pub fn fetch_by_id(id: Int) -> Result(PokemonType, Error)

Fetches a pokemon type by the pokemon type ID.

Example

let result = pokemon_type.fetch_by_id(1)
pub fn fetch_by_name(name: String) -> Result(PokemonType, Error)

Fetches a pokemon type by the pokemon type name.

Example

let result = pokemon_type.fetch_by_name("fairy")
Search Document