From aa85998b9927eec791cacf7bb9a4e40aaddc8be1 Mon Sep 17 00:00:00 2001 From: Zach Cardoza <2280384+bayssmekanique@users.noreply.github.com> Date: Tue, 19 Sep 2017 22:38:36 -0700 Subject: [PATCH 1/2] Adds constructor with options --- types/chokidar/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/chokidar/index.d.ts b/types/chokidar/index.d.ts index 683214fe35..712340f273 100644 --- a/types/chokidar/index.d.ts +++ b/types/chokidar/index.d.ts @@ -17,6 +17,11 @@ export interface WatchedPaths { } export class FSWatcher extends EventEmitter implements fs.FSWatcher { + + /** + * Constructs a new FSWatcher instance with optional WatchOptions parameter. + */ + constructor(options?: WatchOptions); /** * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one From bc971be08e2b7be8cd7e82c7a8c7cab282b94f02 Mon Sep 17 00:00:00 2001 From: Zach Cardoza <2280384+bayssmekanique@users.noreply.github.com> Date: Tue, 19 Sep 2017 22:47:41 -0700 Subject: [PATCH 2/2] Bumps version and adds to editor list --- types/chokidar/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/chokidar/index.d.ts b/types/chokidar/index.d.ts index 712340f273..229ffb556f 100644 --- a/types/chokidar/index.d.ts +++ b/types/chokidar/index.d.ts @@ -1,6 +1,8 @@ -// Type definitions for chokidar 1.7.0 +// Type definitions for chokidar 1.7.1 // Project: https://github.com/paulmillr/chokidar -// Definitions by: Stefan Steinhart , Felix Becker +// Definitions by: Stefan Steinhart +// Felix Becker +// Zach Cardoza // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -17,7 +19,7 @@ export interface WatchedPaths { } export class FSWatcher extends EventEmitter implements fs.FSWatcher { - + /** * Constructs a new FSWatcher instance with optional WatchOptions parameter. */