@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
38 lines • 974 B
TypeScript
import { Fs, WalkCallback, WalkwayConfig } from '../type';
/**
* Walkway represents a filesystem walker
* TypeScript version of Go's Walkway struct
*/
export declare class Walkway {
private fs;
private root;
private cb;
private cfg;
private walked;
constructor(fs: Fs, cb: WalkCallback);
/**
* WalkWith performs walk with specified root and configuration
*/
walkWith(root: string, cfg: WalkwayConfig): Promise<void>;
/**
* Walk performs the filesystem walk
*/
walk(): Promise<void>;
/**
* Check if error should be handled gracefully
*/
private checkErr;
/**
* Check if error is a "not exist" error
*/
private isNotExistError;
/**
* Walk recursively descends path, calling walkFn
*/
private walkRecursive;
}
/**
* Creates a new Walkway instance
*/
export declare function newWalkway(fs: Fs, cb: WalkCallback): Walkway;
//# sourceMappingURL=walkway.d.ts.map