Files
DefinitelyTyped/watch/watch-tests.ts
Bart van der Schoor 09f3d7a8dc imported 25 definitions from typescript-node-definitions
first batch: the easy pickings

- as per https://github.com/borisyankov/DefinitelyTyped/issues/115
- added DT headers (scraped creators from git history)
- added tests
- some modifications
- added CONTRIBUTORS.md for the substantial defs (>50 LOC)
2014-04-22 22:09:35 +02:00

33 lines
566 B
TypeScript

/// <reference path="watch.d.ts" />
import watch = require('watch');
import fs = require('fs');
var value: any;
var str: string;
var num: number;
var bool: boolean;
var mon: watch.Monitor;
var opts: watch.Options = {
ignoreDotFiles: bool,
filter: value
};
mon.on('foo', () => {
});
watch.watchTree(str, (f: any, curr: fs.Stats, prev: fs.Stats) => {
});
watch.watchTree(str, opts, (f: any, curr: fs.Stats, prev: fs.Stats) => {
});
watch.createMonitor(str, (monitor: watch.Monitor) => {
});
watch.createMonitor(str, opts, (monitor: watch.Monitor) => {
});