summary refs log tree commit diff
path: root/src/interfaces.ts
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-13 23:31:53 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-13 23:31:53 +0200
commit0ccea881106946b66d167eee0ec8116ae4e3019e (patch)
treef5bdf7501d97cf31a767ed91335145530db4f49d /src/interfaces.ts
parent241ceeba4ad203b1e0711490344e970a3a452d07 (diff)
downloadkronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.tar.gz
kronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.zip
Add parsePost
Diffstat (limited to 'src/interfaces.ts')
-rw-r--r--src/interfaces.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/interfaces.ts b/src/interfaces.ts
index b6c8d73..8c3493d 100644
--- a/src/interfaces.ts
+++ b/src/interfaces.ts
@@ -4,13 +4,17 @@ interface Date {
   day: string;
 }
 
-interface Post {
+export interface PostContent {
+  html: string;
+  markdown: string;
+  description: string;
+  meta: Object;
+}
+
+export interface Post {
   date: Date;
   title: string;
-  data: Object;
-  file: string;
-  fsRoute: string;
+  content: PostContent;
+  filePath: string;
   route: string;
 }
-
-export { Post };