blob: 05f1c8699a55b5184728128e90a19821b9a907b7 (
plain) (
blame)
1
2
3
4
5
6
7
|
import { PokeApiModel } from "../models/PokeApiModel";
export async function fetchPokeApi(): Promise<PokeApiModel> {
const res = await fetch("https://pokeapi.co/api/v2/pokemon-species?limit=-1");
const data = await res.json();
return data;
}
|