From 157ba47a2c22359464df1cfda9a3e9f463461203 Mon Sep 17 00:00:00 2001 From: Dylanson25 Date: Thu, 10 Oct 2024 12:56:18 -0700 Subject: [PATCH] [#46] - Interface nedded to pokemon game --- src/models/pokemonGame.model.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/models/pokemonGame.model.ts diff --git a/src/models/pokemonGame.model.ts b/src/models/pokemonGame.model.ts new file mode 100644 index 0000000..23f1fa5 --- /dev/null +++ b/src/models/pokemonGame.model.ts @@ -0,0 +1,22 @@ +export enum GameStatus { + Playing = 'playing', + Won = 'won', + Lost = 'lost', +} + +export interface PokemonListResponse { + count: number; + next: string; + previous: null; + results: Result[]; +} + +export interface Result { + name: string; + url: string; +} + +export interface Pokemon { + id: number; + name: string; +}