Skip to content

Commit

Permalink
types: use correct type def for ignored option
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunfei.i committed Aug 16, 2021
1 parent aa49e9e commit 407cd61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as fs from "fs";
import { EventEmitter } from "events";
import { Matcher } from 'anymatch'

export class FSWatcher extends EventEmitter implements fs.FSWatcher {
options: WatchOptions;
Expand Down Expand Up @@ -79,7 +80,7 @@ export interface WatchOptions {
* (the path), second time with two arguments (the path and the
* [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) object of that path).
*/
ignored?: any;
ignored?: Matcher;

/**
* If set to `false` then `add`/`addDir` events are also emitted for matching paths while
Expand Down

0 comments on commit 407cd61

Please sign in to comment.