poststore
Version:
PostStore can be used with NEXT.JS to create markdown-based blogs.
18 lines (17 loc) • 429 B
TypeScript
import { PostData } from './common';
export interface FileNode {
type: PostNode['type'] | CategoryNode['type'];
name: string;
slug: string;
path: string;
postData?: PostData;
children?: FileNode[];
}
export interface PostNode extends FileNode {
type: 'post';
postData: PostData;
}
export interface CategoryNode extends FileNode {
type: 'category';
children: FileNode[];
}