DefinitelyTyped/types/pathwatcher
Glen M ea4008d4e8 Add definitions for atom-mocha-test-runner. (#20380)
* Add definitions for atom-mocha-test-runner.

* Remove the editorconfig.

* Atom: remove editorconfigs, linebreak-style, and all lint disables.
2017-10-09 15:43:18 -07:00
..
v0 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
index.d.ts
pathwatcher-tests.ts
README.md
tsconfig.json Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
tslint.json Add definitions for atom-mocha-test-runner. (#20380) 2017-10-09 15:43:18 -07:00

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) {}