-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
51 lines (44 loc) · 1.01 KB
/
types.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
import type { Platform } from "@/config/links";
import type { StrippedApiData } from "@/lib/apiFetchers/types";
export type Frontmatter = {
title: string | null;
author: string | null;
pubDate: Date;
description: string | null;
image: BlogPostImage | string | null;
isDraft: boolean | null;
category: "coden" | "finanzen" | "verschiedenes";
tags?: string[];
series?: string;
vgWortCode: string;
type: string;
readingTime: number;
codeChallengeData?: CodeChallengeData;
};
export type FrontmatterWithApiData = Frontmatter & {
apiData: StrippedApiData;
};
export type BlogPost = {
frontmatter: Frontmatter;
content: string;
slug: string;
relativeFilePath: string;
};
type BlogPostImage = {
file: string;
alt: string;
credits?: {
creator?: string;
source?: string;
};
};
type CodeChallengeData = {
id: string;
platform: Platform;
language: string;
};
export type AffiliateType = "order" | "register";
export type SearchParams = {
page: string;
per_page: string;
};