thomaswilson-sveltekit/src/lib/Post.ts

19 lines
374 B
TypeScript
Raw Normal View History

2022-04-16 10:43:45 +00:00
export type PostMetadata = {
title: string;
author: string;
slug: string;
draft: boolean;
date: Date;
html: string;
2022-05-27 19:35:55 +00:00
content: string
2022-04-16 10:43:45 +00:00
image?: string;
book_review?: boolean;
finished?: string;
score?: number; // out of 5
tags?: string[];
links?: { country: string; store_name: string; link: string }[];
};
export type Post = PostMetadata & { filename: string };