-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
37 lines (32 loc) · 794 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import type { ParsedContent as DefaultParsedContent } from '@nuxt/content/dist/runtime/types'
import type { StorageMeta } from 'unstorage'
export interface ParsedContent extends DefaultParsedContent {
storageMeta: StorageMeta
prose?: boolean
schemaOrg: Record<string, any>
}
export interface Post extends ParsedContent {
readingMins: number
description: string
publishedAt: Date
modifiedAt: Date
path: string
renderer: 'post' | 'page'
icon?: string
nav?: boolean
}
export interface Page extends Post {
}
export interface JsonParsedContent<T> extends ParsedContent {
body: T
}
export interface Project {
name: string
description: string
link: string
icon?: string
}
export interface ProjectList extends ParsedContent {
name: string
projects: Project[]
}