diff options
Diffstat (limited to 'src/types.ts')
| -rw-r--r-- | src/types.ts | 23 |
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 }; |
