UNPKG

pokeapi-typescript

Version:

Typescript SDK for PokeAPI (https://pokeapi.co)

31 lines (30 loc) 991 B
import type { Move } from "../Moves/Move"; import type { MoveDamageClass } from "../Moves/MoveDamageClass"; import type { ApiResource } from "../Utility/ApiResourceList"; import type { Name } from "../Utility/CommonModels"; import type { NamedApiResource } from "../Utility/NamedApiResourceList"; import type { Characteristic } from "./Characteristic"; import type { Nature } from "./Nature"; export type Stat = { affecting_moves: MoveStatAffectSets; affecting_natures: NatureStatAffectSets; characteristics: ApiResource<Characteristic>; id: number; is_battle_only: boolean; move_damage_class: NamedApiResource<MoveDamageClass>; name: string; name_index: number; names: Name[]; }; export type MoveStatAffectSets = { decrease: MoveStatAffect[]; increase: MoveStatAffect[]; }; export type MoveStatAffect = { change: number; move: NamedApiResource<Move>; }; export type NatureStatAffectSets = { decrease: Nature; increase: Nature; };