@cocalc/project
Version:
CoCalc: project daemon
19 lines (18 loc) • 496 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from "events";
export declare class Watcher extends EventEmitter {
private path;
private exists;
private watchContents?;
private watchExistence?;
private debounce_ms;
private debouncedChange;
private log;
constructor(path: string, debounce_ms: number);
private init;
private initWatchContents;
private initWatchExistence;
private watchExistenceChange;
private change;
close(): void;
}