UNPKG

poststore

Version:

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

7 lines (6 loc) 623 B
import { PageParamOption, PerPageOption, PostStore, StoreOption, PathStore } from '../typings'; export interface makeStoreProps extends Omit<StoreOption, 'shouldUpdate' | 'watchMode'> { } export declare const makeStore: ({ postDir, storeName, perPage, pageParam, incremental, imageMaxWidth, }: makeStoreProps) => Promise<PostStore>; export declare const makePathStore: ({ postDir, perPage, pageParam, }: makeStoreProps) => Promise<PathStore>; export declare const normalizeOption: (paramOption: StoreOption['pageParam'], perPageOption: StoreOption['perPage']) => [Required<PageParamOption>, Required<PerPageOption>];