Skip to content

Commit

Permalink
Merge pull request #1300 from ben-polinsky/fix-fswatcher-types-1299
Browse files Browse the repository at this point in the history
update fs.FSWatcher types to satisfy nodejs versions >= 16; fixes #1299
  • Loading branch information
paulmillr authored Feb 2, 2024
2 parents 5589454 + 29a2f13 commit ab12362
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export class FSWatcher extends EventEmitter implements fs.FSWatcher {
on(event: 'unlink'|'unlinkDir', listener: (path: string) => void): this;

on(event: string, listener: (...args: any[]) => void): this;

ref(): this;

unref(): this;
}

export interface WatchOptions {
Expand Down

0 comments on commit ab12362

Please sign in to comment.