Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Brigante <me@fregante.com>
  • Loading branch information
sindresorhus and fregante authored Nov 14, 2023
1 parent c704f3b commit 7650653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export default function mem<

timer.unref?.();

const timers = cacheTimerStore.get(fn) ?? new Set();
timers.add(timer as any); // eslint-disable-line @typescript-eslint/no-unsafe-argument
const timers = cacheTimerStore.get(fn) ?? new Set<number>();
timers.add(timer as number);
cacheTimerStore.set(fn, timers);
}

Expand Down

0 comments on commit 7650653

Please sign in to comment.