added dropdown item type
This commit is contained in:
Vendored
+25
-17
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user