({ map, id }: any, state: any)
| 157 | function mapOneMutably(map: EntityMapOneNum<T>, state: R): DidMutate; |
| 158 | function mapOneMutably(map: EntityMapOneStr<T>, state: R): DidMutate; |
| 159 | function mapOneMutably({ map, id }: any, state: any): DidMutate { |
| 160 | const entity = state.entities[id]; |
| 161 | if (!entity) { |
| 162 | return DidMutate.None; |
| 163 | } |
| 164 | |
| 165 | const updatedEntity = map(entity); |
| 166 | return updateOneMutably( |
| 167 | { |
| 168 | id: id, |
| 169 | changes: updatedEntity, |
| 170 | }, |
| 171 | state |
| 172 | ); |
| 173 | } |
| 174 | |
| 175 | function upsertOneMutably(entity: T, state: R): DidMutate; |
| 176 | function upsertOneMutably(entity: any, state: any): DidMutate { |
nothing calls this directly
no test coverage detected