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