poststore
Version:
PostStore can be used with NEXT.JS to create markdown-based blogs.
26 lines (25 loc) • 1.25 kB
TypeScript
import { Path, PageProp, StoreOption, UseConfigOption, GlobalProp } from '../typings';
declare type makePageHandlerProps = StoreOption | UseConfigOption;
export declare const getMainPageHandler: (option: makePageHandlerProps) => {
getMainProps: () => Promise<PageProp<'page'>>;
};
export declare const getGlobalPageHandler: (option: makePageHandlerProps) => {
getMainProps: () => Promise<GlobalProp>;
};
export declare const getCategoryPageHandler: (option: makePageHandlerProps) => {
getPathsBySlug: () => Promise<Path[]>;
getPropsBySlug: (param: string | string[]) => Promise<PageProp<"category">>;
};
export declare const getPostPageHandler: (option: makePageHandlerProps) => {
getPathsBySlug: () => Promise<Path[]>;
getPropsBySlug: (param: string | string[]) => Promise<PageProp<"post">>;
};
export declare const getTagPageHandler: (option: makePageHandlerProps) => {
getPathsBySlug: () => Promise<Path[]>;
getPropsBySlug: (param: string | string[]) => Promise<PageProp<"tag">>;
};
export declare const getPageHandler: (option: makePageHandlerProps) => {
getPathsBySlug: () => Promise<Path[]>;
getPropsBySlug: (param: string | string[]) => Promise<PageProp<"page">>;
};
export {};