diff options
Diffstat (limited to 'lib/interfaces.ts')
-rw-r--r-- | lib/interfaces.ts | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/lib/interfaces.ts b/lib/interfaces.ts index 1d598c6..1fbb226 100644 --- a/lib/interfaces.ts +++ b/lib/interfaces.ts @@ -1,24 +1,33 @@ -interface Date { +export interface Date { year: string; month: string; day: string; } -interface Meta { - [key: string]: string; +export interface Object { + [key: string]: any; } -export interface PostContent { - html: string; - markdown: string; - description: string; - meta: Meta; +export interface Meta { + title: string; + author: string; + additionalMeta: Object; +} + +export interface FrontMatterObject { + body: string; + attributes: Object; } -export interface Post { - date: Date; +export interface PostApiListEntry { + date: string; + author: string; title: string; - content: PostContent; - filePath: string; - route: string; + path: string; + description: string; + meta: Object; +} + +export interface PostApiEntry extends PostApiListEntry { + content: string; } |