www/util/slug.d.ts

4 lines
221 B
TypeScript
Raw Normal View History

interface Post { slug?: string, rawslug?: string, content?: string, title?: string };
export function getAllPosts(filter: Array<any> = []): Post[];
export function getPost(rawslug: string, filter: Array<any> = []): Post;