@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
19 lines (18 loc) • 513 B
TypeScript
export interface FileChangeEvent {
filePath: string;
eventType: 'created' | 'modified' | 'deleted';
timestamp: number;
isMarkdown: boolean;
isImage: boolean;
}
export interface WatcherConfig {
contentDirs: string[];
projContentDirs: string[];
batchDelay?: number;
ignorePatterns?: string[];
}
export interface FileWatcher {
startWatching(): Promise<void>;
stopWatching(): Promise<void>;
onFileChange(callback: (events: FileChangeEvent[]) => Promise<void>): void;
}