Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: use correct type def for ignored option #1140

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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