(key: K)
| 66 | } |
| 67 | |
| 68 | delete(key: K) { |
| 69 | const out = super.delete(key); |
| 70 | this.delListener?.(this.size); |
| 71 | const handle = this.timeouts.get(key); |
| 72 | if (handle) { |
| 73 | clearTimeout(handle); |
| 74 | this.timeouts.delete(key); |
| 75 | } |
| 76 | return out; |
| 77 | } |
| 78 | |
| 79 | delListen(func: (size: number) => void) { |
| 80 | this.delListener = func; |
no outgoing calls
no test coverage detected