22
edits
(→API) |
(→API) |
||
Line 36: | Line 36: | ||
// Watches a file for updates | // Watches a file for updates | ||
// handler takes the file's name and an | // handler takes the file's name and an UpdateType. | ||
// onError is an optional argument which is called if the process throws an error. | // onError is an optional argument which is called if the process throws an error. | ||
// type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification. | // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification. | ||
Line 43: | Line 43: | ||
// Watches all files for updates | // Watches all files for updates | ||
// handler takes the changed file's name and and an | // handler takes the changed file's name and and an UpdateType | ||
// onError is an optional argument which is called if the process throws an error. | // onError is an optional argument which is called if the process throws an error. | ||
// type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification. | // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification. |
edits