Skip to content

Commit

Permalink
docs: 'del' does not exist on type (safety-case)
Browse files Browse the repository at this point in the history
PR-URL: #254
Credit: @wangcch
Close: #254
Reviewed-by: @isaacs
  • Loading branch information
wangcch authored and isaacs committed Sep 20, 2022
1 parent 41c7237 commit fd370b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ const cache = {
if (cache.timers.has(k)) {
clearTimeout(cache.timers.get(k))
}
cache.timers.set(k, setTimeout(() => cache.del(k), ttl))
cache.timers.set(k, setTimeout(() => cache.delete(k), ttl))
cache.data.set(k, v)
},
get: k => cache.data.get(k),
Expand Down

0 comments on commit fd370b8

Please sign in to comment.