Remove bloat

Keep rec and res files to not remove the pages themselves
This commit is contained in:
2022-09-10 02:03:52 -04:00
parent bd1e190e6b
commit 0786698336
5 changed files with 19 additions and 15 deletions

21
util/slug.d.ts vendored
View File

@@ -3,26 +3,33 @@ interface Post {
rawslug?: string;
content?: string;
title?: string;
};
}
interface Note {
slug?: string;
rawslug?: string;
content?: string;
title?: string;
}
interface NoteMeta {
title: string;
slug: string;
last_updated: string;
};
}
interface PostMeta {
title: string;
slug: string;
created_at: string;
last_updated: string;
};
}
export function getAllPosts(filter: Array<any> = []): Post[];
export function getAllNotes(filter: Array<any> = []): Note[];
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 getNote(rawslug: string, filter: Array<any> = []): Note;
export function getPost(rawslug: string, filter?: Array<any>): Post;
export function getNote(rawslug: string, filter?: Array<any>): Note;
export function getPostsMeta(): PostMeta[];
export function getNotesMeta(): NoteMeta[];