24 lines
406 B
TypeScript
24 lines
406 B
TypeScript
export interface ServeOptions {
|
|
port: string;
|
|
host?: string;
|
|
}
|
|
|
|
export interface CompileOptions {
|
|
output: string;
|
|
}
|
|
|
|
export type ServeCommandHandler = (
|
|
dir: string,
|
|
options: ServeOptions,
|
|
) => Promise<void>;
|
|
export type CompileCommandHandler = (
|
|
dir: string,
|
|
options: CompileOptions,
|
|
) => Promise<void>;
|
|
|
|
export interface MarkdownFile {
|
|
path: string;
|
|
route: string;
|
|
content: string;
|
|
}
|