thomaswilson-sveltekit/src/lib/Post.ts
2022-04-16 11:43:45 +01:00

17 lines
357 B
TypeScript

export type PostMetadata = {
title: string;
author: string;
slug: string;
draft: boolean;
date: Date;
html: string;
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 };