moved type definitions to a separate directory and fixed some documentations under utils/
This commit is contained in:
20
utils/types/newsCard.ts
Normal file
20
utils/types/newsCard.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Type for NewsCard component
|
||||
* @module utils/newsCard
|
||||
*/
|
||||
|
||||
import type { NewsEntry } from "./news";
|
||||
|
||||
/**
|
||||
* Interface that defines property for NewsCard component
|
||||
* @property {NewsEntry} newsEntry Data of news
|
||||
* @property {boolean} isNew Mark the entry new
|
||||
* @example
|
||||
* <NewsCard :news-entry="articleData" :is-new="isFirstElement(articleData)" />
|
||||
*/
|
||||
interface NewsCardProperty {
|
||||
newsEntry: NewsEntry;
|
||||
isNew: boolean;
|
||||
}
|
||||
|
||||
export type { NewsCardProperty };
|
||||
Reference in New Issue
Block a user