MCPcopy Create free account
hub / github.com/effect-app/libs / makeReverseMapId

Function makeReverseMapId

packages/infra/src/Store/Cosmos.ts:29–31  ·  view source on GitHub ↗
(idKey: IdKey)

Source from the content-addressed store, hash-verified

27 })
28const 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.

Callers 1

Cosmos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…