Files
sera-new-hp/utils/newsCard.ts

19 lines
382 B
TypeScript

/**
* 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
*/
interface NewsCardProperty {
newsEntry: NewsEntry;
isNew: boolean;
}
export type { NewsCardProperty };