(collection: ModCollection, entry: ModEntry)
| 293 | } |
| 294 | |
| 295 | export function updateModEntry(collection: ModCollection, entry: ModEntry): ModCollection { |
| 296 | return { |
| 297 | ...collection, |
| 298 | items: { ...collection.items, [entry.config.id]: entry }, |
| 299 | }; |
| 300 | } |
| 301 | |
| 302 | export function removeMod(collection: ModCollection, id: string): ModCollection { |
| 303 | const items = { ...collection.items }; |
no outgoing calls
no test coverage detected