ttrpg-tools/src/cli/types.ts

24 lines
406 B
TypeScript
Raw Normal View History

2026-02-26 00:17:23 +08:00
export interface ServeOptions {
port: string;
2026-03-21 00:29:36 +08:00
host?: string;
2026-02-26 00:17:23 +08:00
}
export interface CompileOptions {
output: string;
}
export type ServeCommandHandler = (
dir: string,
options: ServeOptions,
) => Promise<void>;
export type CompileCommandHandler = (
dir: string,
options: CompileOptions,
) => Promise<void>;
2026-02-26 00:17:23 +08:00
export interface MarkdownFile {
path: string;
route: string;
content: string;
}