Skip to content

Commit

Permalink
update fs.FSWatcher types to satisfy node versions >= 16; fixes paulm…
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-polinsky committed Feb 2, 2024
1 parent 5589454 commit a0f9e09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ export class FSWatcher extends EventEmitter implements fs.FSWatcher {
*/
on(event: 'ready', listener: () => void): this;

on(event: 'unlink'|'unlinkDir', listener: (path: string) => void): this;
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 a0f9e09

Please sign in to comment.