diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-13 23:31:53 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-13 23:31:53 +0200 |
commit | 0ccea881106946b66d167eee0ec8116ae4e3019e (patch) | |
tree | f5bdf7501d97cf31a767ed91335145530db4f49d /src/interfaces.ts | |
parent | 241ceeba4ad203b1e0711490344e970a3a452d07 (diff) | |
download | kronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.tar.gz kronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.zip |
Add parsePost
Diffstat (limited to 'src/interfaces.ts')
-rw-r--r-- | src/interfaces.ts | 16 |
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 }; |