-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
types.ts
40 lines (35 loc) · 884 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
38
39
40
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
status?: 'sponsors-only' | 'unlisted' | 'published'
}
export interface Page extends Post {
}
export interface JsonParsedContent<T> extends ParsedContent {
body: T
}
export interface Project {
name: string
description: string
repo: string
updatedAt: string
stars: number
icon?: string
}
export interface ProjectList extends ParsedContent {
name: string
projects: Project[]
}