Skip to content

Commit

Permalink
Merge pull request #1140 from iheyunfei/types/0816
Browse files Browse the repository at this point in the history
types: use correct type def for ignored option
  • Loading branch information
paulmillr authored Aug 16, 2021
2 parents aa49e9e + 407cd61 commit ec84fd2
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 ec84fd2

Please sign in to comment.