UNPKG

poststore

Version:

PostStore can be used with NEXT.JS to create markdown-based blogs.

13 lines (12 loc) 409 B
import { PostData, SlugMap, PostInfo } from '../typings'; interface makePostProps { filePath: string; slugMap?: SlugMap; useCache?: boolean; } export declare const makePost: ({ filePath, slugMap, useCache, }: makePostProps) => Promise<PostData>; export declare const parseMarkdown: (filePath: string, markdown: string) => Promise<{ html: string; info: PostInfo; }>; export {};