mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
@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.
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user