18 lines
348 B
TypeScript
Raw Normal View History

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