Skip to content

Commit

Permalink
feat(models): update pokemon typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabb-c committed Jul 7, 2024
1 parent 499581c commit b74341a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/models/Pokemon/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export interface Pokemon {
location_area_encounters: string;
/** A list of moves along with learn methods and level details pertaining to specific version groups */
moves: PokemonMove[];
/** A set of sprites used to depict this Pokémon in the game.
* A visual representation of the various sprites can be found at [PokeAPI/sprites](https://github.com/PokeAPI/sprites#sprites)
*/
/** A set of sprites used to depict this Pokémon in the game. */
sprites: PokemonSprites;
/** A set of cries used to depict this Pokémon in the game. */
cries: PokemonCries;
/** The species this Pokémon belongs to */
species: NamedAPIResource;
/** A list of base stat values for this Pokémon */
Expand All @@ -57,6 +57,13 @@ export interface Pokemon {
past_types: PokemonPastType[];
}

export type PokemonCries = {
/** The legacy depiction of this Pokémon's cry. */
legacy: string;
/** The latest depiction of this Pokémon's cry. */
latest: string;
};

/**
* Abilities the given pokémon could potentially have
*/
Expand Down

0 comments on commit b74341a

Please sign in to comment.