Files
landscape-template/src/utils/interfaces.ts
2021-12-10 21:45:12 +02:00

37 lines
617 B
TypeScript

export interface AllCategoriesData {
allCategories: ProjectCategory[];
}
export interface ProjectCategory {
id: string;
title: string;
}
export interface ProjectCard {
id: string;
title: string;
thumbnail_image: string;
category: ProjectCategory;
votes_count: number;
}
export interface Tag {
id: string;
title: string;
}
export type Image = string;
export interface Project {
id: string;
title: string;
category: ProjectCategory;
website?: string;
description: string;
tags: Tag[];
cover_image: Image;
thumbnail_image: Image;
screenShots: Image[];
votes_count: number;
}