-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45d3384
commit b5f8902
Showing
6 changed files
with
7,924 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { Gaze } from "gaze"; | ||
|
||
export function startFileWatcher(watchPaths: string[], callback: Function) { | ||
const gaze = new Gaze(watchPaths, { debounceDelay: 100 }); | ||
export function startFileWatcher(watchPaths: string[], callback: Function): Gaze { | ||
let gaze = new Gaze(watchPaths, { debounceDelay: 100 }); | ||
// @ts-ignore | ||
gaze.on("all", callback); | ||
|
||
return gaze; | ||
} |
Oops, something went wrong.