BUILD # 36
1405-04-18 06:11
تعریف تایپ های پروژه توی استرو
من تایپ هامو توی پوشه /src/types ریختم توی پوشه index.astro چون پروژه خودمه و api هاش زیاد نیس
export interface ProjectStack {
id: number;
title: string;
slug: string;
bg: string;
}
export interface ProjectItem {
id: number;
title: string;
graphic_title_1: string;
graphic_title_2: string;
slug: string;
short_description: string;
logs_count: number;
created_at: string;
created_at_jalali: string;
show_in_home: number;
bg: string;
color: string;
img: string;
status: string | null;
stacks: ProjectStack[];
}پس این از تعریف تایپ هام