UNPKG

467 BTypeScriptView Raw
1/// <reference types="node" />
2import { EventEmitter } from "events";
3import DirectoryWatcher = require("./DirectoryWatcher");
4
5declare class Watcher extends EventEmitter {
6 data: number;
7 directoryWatcher: DirectoryWatcher;
8 path: string;
9 startTime: number;
10
11 constructor(directoryWatcher: DirectoryWatcher, filePath: string, startTime: number);
12
13 checkStartTime(mtime: number, initial: boolean): boolean;
14
15 close(): void;
16}
17
18export = Watcher;