Skip to content

Commit

Permalink
improve map and set types
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Sep 20, 2024
1 parent c51abe4 commit ba5fc91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type BasicOpts = {

export type Throttler = {
timeoutObject: any;
clear: () => any;
clear: () => void;
count: number;
}

Expand Down Expand Up @@ -310,12 +310,12 @@ export class FSWatcher extends EventEmitter {
_closers: Map<string, Array<any>>;
_ignoredPaths: Set<Matcher>;
_throttled: Map<ThrottleType, Map<any, any>>;
_streams: Set<any>;
_streams: Set<ReaddirpStream>;
_symlinkPaths: Map<Path, string | boolean>;
_watched: Map<string, DirEntry>;

_pendingWrites: Map<any, any>;
_pendingUnlinks: Map<any, any>;
_pendingWrites: Map<string, any>;
_pendingUnlinks: Map<string, any>;
_readyCount: number;
_emitReady: () => void;
_closePromise?: Promise<void>;
Expand Down

0 comments on commit ba5fc91

Please sign in to comment.