lunasqu.ee-nuxt/lib/types/post.ts

25 lines
422 B
TypeScript
Raw Normal View History

2022-10-16 11:04:03 +00:00
export interface BlogPost {
date: string;
title: string;
tags: string[];
file: string;
slug: string;
fullSlug: string;
2022-12-04 10:12:29 +00:00
markdown?: string;
summary: string;
2022-12-04 10:12:29 +00:00
html?: string;
2022-10-16 16:17:55 +00:00
next?: Partial<BlogPost>;
prev?: Partial<BlogPost>;
2022-10-16 11:04:03 +00:00
}
export interface BlogPostTag {
name: string;
count: number;
posts: string[];
}
2022-12-04 10:12:29 +00:00
export type ArchiveDto = Record<
string,
Record<string, Record<string, string[]>>
>;