mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
refactor: improve type safety (#155)
* Fix to make it type safe. * The build is failing, fix it.
This commit is contained in:
committed by
GitHub
parent
f79ee3482d
commit
e9c8930559
@@ -1,4 +1,4 @@
|
||||
import type { LIGHT_MODE, DARK_MODE, AUTO_MODE } from '@constants/constants'
|
||||
import type { AUTO_MODE, DARK_MODE, LIGHT_MODE } from '@constants/constants'
|
||||
|
||||
export type SiteConfig = {
|
||||
title: string
|
||||
@@ -67,3 +67,18 @@ export type LIGHT_DARK_MODE =
|
||||
| typeof LIGHT_MODE
|
||||
| typeof DARK_MODE
|
||||
| typeof AUTO_MODE
|
||||
|
||||
export type BlogPostData = {
|
||||
body: string
|
||||
title: string
|
||||
published: Date
|
||||
description: string
|
||||
tags: string[]
|
||||
draft?: boolean
|
||||
image?: string
|
||||
category?: string
|
||||
prevTitle?: string
|
||||
prevSlug?: string
|
||||
nextTitle?: string
|
||||
nextSlug?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user