ttrpg-tools/src/cli/types.ts

17 lines
375 B
TypeScript

export interface ServeOptions {
port: 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;
}