UNPKG

@tempfix/watcher

Version:

The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.

29 lines (28 loc) 786 B
type Callback = () => void; type Options = { depth?: number; limit?: number; followSymlinks?: boolean; ignore?: ((targetPath: string) => boolean) | RegExp; signal?: { aborted: boolean; }; }; type ResultDirectory = { directories: string[]; directoriesNames: Set<string>; directoriesNamesToPaths: Record<string, string[]>; files: string[]; filesNames: Set<string>; filesNamesToPaths: Record<string, string[]>; symlinks: string[]; symlinksNames: Set<string>; symlinksNamesToPaths: Record<string, string[]>; }; type ResultDirectories = { [path: string]: ResultDirectory; }; type Result = ResultDirectory & { map: ResultDirectories; }; export type { Callback, Options, ResultDirectory, ResultDirectories, Result };