(idKey: IdKey)
| 27 | }) |
| 28 | const makeReverseMapId = |
| 29 | <IdKey extends keyof Encoded, Encoded extends FieldValues>(idKey: IdKey) => |
| 30 | ({ id, ...t }: PersistenceModelType<Omit<Encoded, IdKey> & { id: string }>) => |
| 31 | ({ ...t, [idKey]: id }) as any as PersistenceModelType<Encoded> |
| 32 | |
| 33 | // Cosmos statuses worth retrying: request timeout, throttle, retry-with, |
| 34 | // internal, and service unavailable. |
no outgoing calls
no test coverage detected
searching dependent graphs…