-
Notifications
You must be signed in to change notification settings - Fork 41
/
types.ts
62 lines (55 loc) · 1.27 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import type { ParsedContent, MarkdownParsedContent } from '@nuxt/content/dist/runtime/types';
export type Sections = 'blog' | 'podcasts' | 'videos' | 'courses';
export interface Video extends ParsedContent {
video: string,
title: string,
start?: number,
date: string,
host?: string,
conference?: string,
tags: string[]
}
export interface Podcast extends ParsedContent {
title: string,
date: string,
description: string,
url: string,
tags: string[],
host: string,
provider: string,
image: string
}
export interface Course extends ParsedContent {
title: string,
date: string,
description: string,
url: string,
tags: string[],
provider: string,
image: string,
platform: string,
}
export interface BlogPost extends MarkdownParsedContent {
title: string,
date: string,
description: string,
url?: string,
image: string,
alt: string,
ogImage?: string,
provider: string,
tags: string[],
published?: boolean
}
export type BlogPostPreview = Omit<BlogPost, 'body'>;
export type PodcastPreview = Omit<Podcast, 'body'>;
export type VideoPreview = Omit<Video, 'body'>;
export type CoursePreview = Omit<Video, 'body'>;
export interface PrevNext {
title?: string,
_path?: string
}
export interface Navigation {
url: string,
link: string
}