-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
50 lines (46 loc) · 933 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
41
42
43
44
45
46
47
48
49
50
import { SanityImageAssetDocument } from "@sanity/client";
export type LangType = "en" | "id";
export interface FormMessageTypes {
status: string;
message?: string;
open: boolean;
}
export interface PostEntryProps {
_id: string;
_score?: number;
title: {
en: string;
id?: string;
};
excerpt: {
en: string;
id?: string;
};
slug: { current: string };
publishedAt: string;
mainImage?: SanityImageAssetDocument;
categories: { title: string; slug: { current: string } }[];
format: { title: string };
}
export interface PostProps extends PostEntryProps {
// id: number;
// excerpt: string;
// frontmatter: FrontmatterProps;
// html: string;
// fields: {
// slug: string;
// lang: string;
// };
// timeToRead: number;
// parent?: {
// modifiedTime?: string;
// };
intro: {
en: any[];
id?: any[];
};
content: {
en: any[];
id?: any[];
};
}