@bgoff1/pokeapi-types
Version:
Typescript types for the PokeAPI. For more information go to https://pokeapi.co/docs/v2.
39 lines (38 loc) • 1.41 kB
TypeScript
import type { APIResource } from "../common/api-resource";
import type { Description } from "../common/description";
import type { FlavorText } from "../common/flavor-text";
import type { Genus } from "./genus";
import type { Name } from "../common/name";
import type { NamedAPIResource } from "../common/named-api-resource";
import type { PalParkEncounterArea } from "./pal-park-encounter-area";
import type { PokemonSpeciesDexEntry } from "./pokemon-species-dex-entry";
import type { PokemonSpeciesVariety } from "./pokemon-species-variety";
export type PokemonSpecies = {
id: number;
name: string;
order: number;
gender_rate: number;
capture_rate: number;
base_happiness: number;
is_baby: boolean;
is_legendary: boolean;
is_mythical: boolean;
hatch_counter: number;
has_gender_differences: boolean;
forms_switchable: boolean;
growth_rate: NamedAPIResource;
pokedex_numbers: PokemonSpeciesDexEntry[];
egg_groups: NamedAPIResource[];
color: NamedAPIResource;
shape: NamedAPIResource;
evolves_from_species: NamedAPIResource;
evolution_chain: APIResource;
habitat: NamedAPIResource;
generation: NamedAPIResource;
names: Name[];
pal_park_encounters: PalParkEncounterArea[];
flavor_text_entries: FlavorText[];
form_descriptions: Description[];
genera: Genus[];
varieties: PokemonSpeciesVariety[];
};