forked from ogzhanolguncu/ogzhanolguncu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
53 lines (47 loc) · 874 Bytes
/
global.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
export type Blog = {
id: number;
title: string;
date: string;
description: string;
tags: string[];
};
export type StaticBlog = {
id: string;
title: string;
publishedAt: Date;
summary: string;
image: string;
languageTags: string[];
isPopular: boolean;
guides: boolean;
readingTime: string;
year: number;
};
export type ErrorProps = {
statusCode: number;
message: string;
};
export type TimeLineProps = {
text: string;
date: string;
category: {
tag: string;
color: { light: string; dark: string };
};
};
type MatterTypes = {
wordCount: number;
slug: string;
summary: string;
readingTime: {
text: string;
minutes: number;
time: number;
words: number;
};
};
export type MdxSource = {
compiledSource: string;
renderedOutput: string;
};
export type FrontMatterTypes = StaticBlog & MatterTypes;