( collection: CharacterCollection, char: CharacterConfig, )
| 250 | } |
| 251 | |
| 252 | export function addCharacter( |
| 253 | collection: CharacterCollection, |
| 254 | char: CharacterConfig, |
| 255 | ): CharacterCollection { |
| 256 | return { ...collection, items: { ...collection.items, [char.id]: char } }; |
| 257 | } |
| 258 | |
| 259 | export function updateCharacter( |
| 260 | collection: CharacterCollection, |
nothing calls this directly
no outgoing calls
no test coverage detected