summary refs log tree commit diff
path: root/lib/interfaces.ts
blob: 974765f7c0cafda61cdbaa30e70bc0a0ca85e999 (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 Meta {
  [key: string]: object;
}*/

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

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

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

export interface PostApiEntry extends PostApiListEntry {
  content: string;
}