summaryrefslogtreecommitdiffhomepage
path: root/src/types.ts
blob: 0437cb4a7d33cc7ff13ae005cf5a3356852b2f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


export type ImageRendering = "auto" | "crisp-edges" | "pixelated";
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 };