7 lines
173 B
TypeScript
7 lines
173 B
TypeScript
|
|
import { api } from './client'
|
||
|
|
import type { Pokemon } from '../types/game'
|
||
|
|
|
||
|
|
export function getPokemon(id: number): Promise<Pokemon> {
|
||
|
|
return api.get(`/pokemon/${id}`)
|
||
|
|
}
|