()
| 223 | } |
| 224 | |
| 225 | getToolCounts(): Map<string, number> { |
| 226 | const counts = new Map<string, number>(); |
| 227 | for (const item of this.items.values()) { |
| 228 | for (const tool of item.tools) { |
| 229 | counts.set(tool, (counts.get(tool) || 0) + 1); |
| 230 | } |
| 231 | } |
| 232 | return counts; |
| 233 | } |
| 234 | |
| 235 | getTypeCounts(): Map<string, number> { |
| 236 | const counts = new Map<string, number>(); |