Cleanup post caching

This commit is contained in:
2022-04-27 04:03:21 -04:00
parent 2cc267adda
commit 6f37de0c2d
10 changed files with 68 additions and 41 deletions
+15 -2
View File
@@ -1,4 +1,17 @@
interface Post { slug?: string, rawslug?: string, content?: string, title?: string };
interface Post {
slug?: string;
rawslug?: string;
content?: string;
title?: string;
};
interface PostMeta {
title: string;
slug: string;
created_at: string;
last_updated: string;
};
export function getAllPosts(filter: Array<any> = []): Post[];
export function getPost(rawslug: string, filter: Array<any> = []): Post;
export function getPost(rawslug: string, filter: Array<any> = []): Post;
export function getPostsMeta(): PostMeta[];