mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
| .. | ||
| v0 | ||
| .editorconfig | ||
| index.d.ts | ||
| pathwatcher-tests.ts | ||
| README.md | ||
| tsconfig.json | ||
| tslint.json | ||
Path Watcher Node Type Definitions
TypeScript type definitions for [Path Watcher Node], which is published as "pathwatcher" on NPM.
Usage Notes
Exports
The two classes exported from this module are: File and Directory.
import { File, Directory } from "text-buffer";
Additionally, the following functions are exported as well:
watch(): PathWatcher.PathWatcher;
closeAllWatchers(): void;
getWatchedPaths(): string[];
The PathWatcher Namespace
All types used by Path Watcher can be referenced from the PathWatcher namespace.
function example(file: PathWatcher.File) {}