2024-10-31 18:14:45 +01:00
|
|
|
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[]
|
2024-10-31 18:14:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2024-10-31 18:14:45 +01:00
|
|
|
> {
|
|
|
|
nsfw: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BlogFormErrors extends Partial<BlogFormSubmit> {}
|