watchPath returns a Promise

This commit is contained in:
Nikolay Yakimov
2017-12-13 22:17:57 +03:00
committed by GitHub
parent 4e4bc72092
commit 8015c2aead

View File

@@ -24,7 +24,7 @@ declare global {
* Project::onDidChangeFiles instead.
*/
export function watchPath(rootPath: string, options: {}, eventCallback: (events:
FilesystemChangeEvent) => void): PathWatcher;
FilesystemChangeEvent) => void): Promise<PathWatcher>;
// Essential Classes ==========================================================