moved type definitions to a separate directory and fixed some documentations under utils/

This commit is contained in:
2024-11-17 18:06:59 +09:00
parent 1ab17242f7
commit 1c4947e4e3
11 changed files with 3 additions and 4 deletions

20
utils/types/newsCard.ts Normal file
View 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 };