-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeclaration.d.ts
99 lines (90 loc) · 1.98 KB
/
declaration.d.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// declare module 'read-markdown';
type BaseInfosType = {
siteUrl: string;
email: string;
titleDefault: string;
imageDefault: string;
descriptionDefault: string;
prefixAudio: string;
prefixAudioDev: string;
youtubeChannelId: string;
twitterUrl: string;
};
type PodcastInfosType = {
title: string;
// baseline
subtitle: string;
// short description
summary: string;
// long description
description: string;
// episodic || serial
podcastType: string;
siteUrl: string;
imageUrl: string;
feedUrl: string;
language: string;
copyright: string;
authorName: string;
ownerName: string;
ownerEmail: string;
managingEditor: string;
webMaster: string;
explicit: string;
publicationDate: string;
category1: string;
timeToLive: number;
facebookImage: string;
};
type PodcastContentType = {
_path: string;
title: string;
description: string;
excerpt: { type: string; children: [][] };
publicationDate: string;
status: string;
author: string;
categories: string[];
dsSlug?: string;
videoID?: string;
url?: string;
episodeNumber: number;
episodeType: string;
explicit: boolean;
season: number;
subtitle: string;
description: string;
guid?: string;
episodeArtwork?: string;
body: { type: string; children: [][]; toc: {}[] };
};
type PodcastItems = {
title: string;
subtitle: string;
url: string;
body: string;
slug: string;
season: string;
episodeNumber: string;
episodeType: string;
publicationDate: string;
author: string;
explicit: string;
categories: string;
};
declare module '@nuxt/schema' {
interface AppConfig {
globalInfos: PodcastInfosType;
}
}
type typeDuration = { hours: number; minutes: number; seconds: number };
type typeStatusPlayer = 'play' | 'pause';
type typeSpeedPlayer = 0.5 | 0.75 | 1.0 | 1.25 | 1.5 | 1.75 | 2.0;
type ArticleType = {
_path: string;
title: string;
description: string;
publicationDate: string;
author: { name: string; url: string };
body: string;
};