36 lines
556 B
TypeScript
Raw Normal View History

export interface BlogDetails {
title: string
content: string
summary: string
image: string
nsfw: boolean
tags: string
id: string
author: string
published_at: number
edited_at: number
2024-10-31 20:14:29 +01:00
rTag: string
dTag: string
aTag: string
tTags: string[]
}
export interface BlogFormSubmit
extends Omit<
BlogDetails,
2024-10-31 20:14:29 +01:00
| 'nsfw'
| 'id'
| 'author'
| 'published_at'
| 'edited_at'
| 'rTag'
| 'dTag'
| 'aTag'
| 'tTag'
> {
nsfw: string
}
export interface BlogFormErrors extends Partial<BlogFormSubmit> {}