poststore
Version:
PostStore can be used with NEXT.JS to create markdown-based blogs.
20 lines (19 loc) • 534 B
TypeScript
import { PerPageOption, PageParamOption } from './common';
export interface PostStoreConfig {
storeOption: StoreOption | StoreOption[];
}
export interface StoreOption {
postDir: string;
storeName?: string;
perPage?: number | PerPageOption;
pageParam?: string | PageParamOption;
shouldUpdate?: boolean;
watchMode?: boolean;
incremental?: boolean;
imageMaxWidth?: number;
}
export interface UseConfigOption {
useConfig: true;
storeName?: string;
configPath?: string;
}