New notes

This commit is contained in:
2022-04-28 12:37:12 -04:00
parent fda1c71b42
commit a212076ce7
16 changed files with 1362 additions and 21 deletions
+12 -1
View File
@@ -5,6 +5,12 @@ interface Post {
title?: string;
};
interface NoteMeta {
title: string;
slug: string;
last_updated: string;
};
interface PostMeta {
title: string;
slug: string;
@@ -13,5 +19,10 @@ interface PostMeta {
};
export function getAllPosts(filter: Array<any> = []): Post[];
export function getAllNotes(filter: Array<any> = []): Note[];
export function getPost(rawslug: string, filter: Array<any> = []): Post;
export function getPostsMeta(): PostMeta[];
export function getNote(rawslug: string, filter: Array<any> = []): Note;
export function getPostsMeta(): PostMeta[];
export function getNotesMeta(): NoteMeta[];