From a822af46687f2919a0c0c46e28300c4f7e9153c4 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Wed, 5 Feb 2025 02:06:29 +0330 Subject: [PATCH] added dropdown item type --- frontend/types/global.d.ts | 42 +++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 043126c..70a7644 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -44,23 +44,23 @@ declare global { }; 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 - } + 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; @@ -108,4 +108,12 @@ declare global { hour: string; price: string; }; + + type DropdownItem = { + title: string; + icon: string; + itemClass?: string; + iconClass?: string; + onClick?: () => void; + }; }