meblog
Version:
A simple blog engine for personal blogging
40 lines (39 loc) • 989 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from 'events';
export declare type Tag = string;
export interface IPost {
title: string;
slug: string;
publishedAt: Date | string;
tags: Tag[] | string;
excerpt: string;
body: string;
layout?: string;
}
interface EventRegister {
(eventEmitter: EventEmitter): void;
}
export interface Config {
rootDir?: string;
baseUrl: string;
baseContext: string;
siteName: string;
siteDescription: string;
devMode?: boolean;
dateTimeFormat: string;
dateFormat: string;
postUrlStyle?: PostUrlStyle;
eventRegister?: EventRegister;
locales?: string[];
defaultLocale?: string;
[otherOption: string]: any;
}
export declare enum PostUrlStyle {
POSTS_SLUG = "POSTS_SLUG",
POSTS_YEAR_MONTH_SLUG = "POSTS_YEAR_MONTH_SLUG",
POSTS_YEAR_SLUG = "POSTS_YEAR_SLUG",
YEAR_MONTH_SLUG = "YEAR_MONTH_SLUG",
YEAR_SLUG = "YEAR_SLUG",
SLUG = "SLUG"
}
export {};