summary refs log tree commit diff
path: root/lib/interfaces.ts
blob: 158ac1d71e423969c43be66c1694bd82c1191ece (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
25
26
27
28
29
30
31
32
33
export interface Date {
  year: string;
  month: string;
  day: string;
}

export interface Object {
  [key: string]: any;
}

export interface Meta {
  title: string;
  author: string;
  additionalMeta: object;
}

export interface FrontMatterObject {
  body: string;
  attributes: Object;
}

export interface PostApiListEntry {
  date: string;
  author: string;
  title: string;
  path: string;
  description: string;
  meta: object;
}

export interface PostApiEntry extends PostApiListEntry {
  content: string;
}