24 lines
423 B
TypeScript
24 lines
423 B
TypeScript
|
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
|
||
|
}
|
||
|
|
||
|
export interface BlogFormSubmit
|
||
|
extends Omit<
|
||
|
BlogDetails,
|
||
|
'nsfw' | 'id' | 'author' | 'published_at' | 'edited_at'
|
||
|
> {
|
||
|
nsfw: string
|
||
|
}
|
||
|
|
||
|
export interface BlogFormErrors extends Partial<BlogFormSubmit> {}
|