From 5b192d9cfedb63e1648d4ca2f1bfc42118e9e11b Mon Sep 17 00:00:00 2001 From: Barry Simpson Date: Thu, 28 Mar 2019 11:14:34 -0400 Subject: [PATCH] @types/watch: Incorrect type for Options.ignoreDirectoryPattern The `watch` [code](https://github.com/mikeal/watch/blob/v1.0.2/main.js#L55) and [docs](https://github.com/mikeal/watch/blame/v1.0.2/README.md#L24) indicate that the `ignoreDirectoryPattern` option is a `RegExp`, but `@types/watch` incorrectly declares it as a `boolean` in the `Options` interface. --- types/watch/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/watch/index.d.ts b/types/watch/index.d.ts index 626d47dbf3..c5d473ad13 100644 --- a/types/watch/index.d.ts +++ b/types/watch/index.d.ts @@ -27,7 +27,7 @@ export interface Options { interval?: number; ignoreUnreadableDir?: boolean; ignoreNotPermitted?: boolean; - ignoreDirectoryPattern?: boolean; + ignoreDirectoryPattern?: RegExp; } export function watchTree(root: string, callback: (f: FileOrFiles, curr: fs.Stats, prev: fs.Stats) => void): void;