17 lines
317 B
TypeScript
17 lines
317 B
TypeScript
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>
|
|
}
|