diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index e28b8ce..a4a45b1 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -43,6 +43,25 @@ declare global { meta_rating: number | null; }; + type Article = { + "id": number, + "title": string, + "slug": string, + "content": string, + "summery": string, + "created_at": string, + "updated_at": string, + "cover_image": string, + "views": number, + "meta_description": string, + "meta_keywords": string, + "author": { + "full_name": string, + "profile_photo": string + }, + "category": number + } + type UserComment = { "id": number, "content": string,