summaryrefslogtreecommitdiffhomepage
path: root/src/types.ts
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-06-16 16:49:14 -0400
committerrealtradam <[email protected]>2024-06-16 16:49:14 -0400
commitc72edf37baf307322b49b7c75c59d077dda9bc83 (patch)
treeadfd5bd8b318c2d0ac6c63c6c81848d6c35dfe1c /src/types.ts
parentee6c193c97e29d1c41a0886b380f54d75bb3120c (diff)
downloadmalcz.com-c72edf37baf307322b49b7c75c59d077dda9bc83.tar.gz
malcz.com-c72edf37baf307322b49b7c75c59d077dda9bc83.zip
updated upload
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts
index f28148b..0437cb4 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,5 +1,26 @@
export type ImageRendering = "auto" | "crisp-edges" | "pixelated";
-export type GameType = { id: number, card_img: string, char_img: string, title_img: string, img_rendering: ImageRendering, titleSlug: string };
+export type Tag = {
+ id: number,
+ tag_type: string,
+ name: string,
+};
+export type GameType = {
+ id: number,
+ title: string,
+ titleSlug: string,
+ description: string,
+ github_link: string,
+ img_rendering: ImageRendering,
+ status: string,
+ order: number,
+ created_at: string,
+ updated_at: string,
+ user_id: number,
+ tags: Tag[],
+ card_img: string,
+ char_img: string,
+ title_img: string,
+};
export type GameCardProps = { link: string, game: GameType };