17 lines
317 B
TypeScript
Raw Normal View History

export type TNews = {
title: string
description: string
type: 'hero' | 'grid'
items: Pick<TNewsDetail, 'title' | 'content' | 'featured' | 'slug' | 'tag'>[]
}
export type TNewsDetail = {
title: string
content: string
featured: string
author: string
date: Date
slug: string
tag?: Array<string>
}