New notes
This commit is contained in:
Vendored
+12
-1
@@ -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[];
|
||||
Reference in New Issue
Block a user