2022-04-27 04:03:21 -04:00
|
|
|
interface Post {
|
|
|
|
slug?: string;
|
|
|
|
rawslug?: string;
|
|
|
|
content?: string;
|
|
|
|
title?: string;
|
2022-09-10 02:03:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Note {
|
|
|
|
slug?: string;
|
|
|
|
rawslug?: string;
|
|
|
|
content?: string;
|
|
|
|
title?: string;
|
|
|
|
}
|
2022-04-27 04:03:21 -04:00
|
|
|
|
2022-04-28 12:37:12 -04:00
|
|
|
interface NoteMeta {
|
|
|
|
title: string;
|
|
|
|
slug: string;
|
|
|
|
last_updated: string;
|
2022-09-10 02:03:52 -04:00
|
|
|
}
|
2022-04-28 12:37:12 -04:00
|
|
|
|
2022-04-27 04:03:21 -04:00
|
|
|
interface PostMeta {
|
|
|
|
title: string;
|
|
|
|
slug: string;
|
|
|
|
created_at: string;
|
|
|
|
last_updated: string;
|
2022-09-10 02:03:52 -04:00
|
|
|
}
|
2022-04-24 00:27:51 -04:00
|
|
|
|
2022-09-10 02:03:52 -04:00
|
|
|
export function getAllPosts(filter?: Array<any>): Post[];
|
|
|
|
export function getAllNotes(filter?: Array<any>): Note[];
|
2022-04-28 12:37:12 -04:00
|
|
|
|
2022-09-10 02:03:52 -04:00
|
|
|
export function getPost(rawslug: string, filter?: Array<any>): Post;
|
|
|
|
export function getNote(rawslug: string, filter?: Array<any>): Note;
|
2022-04-28 12:37:12 -04:00
|
|
|
|
|
|
|
export function getPostsMeta(): PostMeta[];
|
|
|
|
export function getNotesMeta(): NoteMeta[];
|