summary refs log tree commit diff
path: root/lib/interfaces.ts
blob: 1d598c6c1386bec9cabb804de051b222c78f4ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
interface Date {
  year: string;
  month: string;
  day: string;
}

interface Meta {
  [key: string]: string;
}

export interface PostContent {
  html: string;
  markdown: string;
  description: string;
  meta: Meta;
}

export interface Post {
  date: Date;
  title: string;
  content: PostContent;
  filePath: string;
  route: string;
}