23 lines
426 B
TypeScript
23 lines
426 B
TypeScript
import type { TTagResponse } from '~/apis/common/get-tags'
|
|
|
|
export type TNews = {
|
|
title: string
|
|
description: string
|
|
items: Pick<
|
|
TNewsDetail,
|
|
'title' | 'content' | 'featured' | 'slug' | 'tags' | 'isPremium'
|
|
>[]
|
|
}
|
|
|
|
type TNewsDetail = {
|
|
title: string
|
|
content: string
|
|
featured: string
|
|
author: string
|
|
date: Date
|
|
slug: string
|
|
tags?: TTagResponse[]
|
|
isPremium?: boolean
|
|
categories?: Array<string>
|
|
}
|