From eae19bb1b047b3568e7a9a624b50e80886e56331 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:47:50 +0300 Subject: feat/frontend: optimizing imports, file extensions (#230) Co-authored-by: FifthWit --- frontend/src/types/Chapters.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 frontend/src/types/Chapters.ts (limited to 'frontend/src/types/Chapters.ts') diff --git a/frontend/src/types/Chapters.ts b/frontend/src/types/Chapters.ts new file mode 100644 index 0000000..1d48306 --- /dev/null +++ b/frontend/src/types/Chapters.ts @@ -0,0 +1,19 @@ +import type { Game } from "@customTypes/Game"; +import type { Map } from "@customTypes/Map"; + +interface Chapter { + id: number; + name: string; + image: string; + is_disabled: boolean; +} + +export interface GameChapter { + chapter: Chapter; + maps: Map[]; +} + +export interface GamesChapters { + game: Game; + chapters: Chapter[]; +} \ No newline at end of file -- cgit v1.2.3